swap amount input
This commit is contained in:
@@ -385,5 +385,12 @@ func metaBcSwapParser(tx *Tx, instruction Instruction, innerInstructions InnerIn
|
||||
EntryContract: entryContract,
|
||||
},
|
||||
}
|
||||
if swapEvent.Params != nil {
|
||||
swaps[0].SetSwapAmountInfo(
|
||||
SwapModeExactIn,
|
||||
decimal.NewFromUint64(swapEvent.Params.AmountIn),
|
||||
decimal.NewFromUint64(swapEvent.Params.MinimumAmountOut),
|
||||
)
|
||||
}
|
||||
return swaps, offset, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user