This commit is contained in:
ssallam 2021-01-18 16:08:49 +01:00
parent 00eacb7832
commit 7d8a8ae7dd

View File

@ -174,6 +174,12 @@ export function handleSetup(event: LOG_CALL): void {
handleSetSwapFee(event, swapFee) handleSetSwapFee(event, swapFee)
handleFinalize(event) handleFinalize(event)
createPoolTransaction(event, 'setup', event.transaction.from.toHex()) createPoolTransaction(event, 'setup', event.transaction.from.toHex())
const ptx = event.transaction.hash.toHexString()
let poolTx = PoolTransaction.load(ptx)
if (poolTx == null) {
debuglog('????????????????????????????/ no PoolTransaction ', event, [ptx])
return
}
// update base token // update base token
let amount = hexToDecimal(baseTokenAmount, 18) let amount = hexToDecimal(baseTokenAmount, 18)