Update dlmm fee
This commit is contained in:
@@ -846,6 +846,7 @@ func metaoradlmmSwapParser(tx *Tx, instruction Instruction, innerInstructions In
|
||||
BaseAmount: baseAmount,
|
||||
QuoteAmount: quoteAmount,
|
||||
FeeAmount: feeAmount,
|
||||
FeeBps: dlmmSwapFeeBpsString(swapEvent.FeeBps),
|
||||
LpFeeAmount: lpFeeAmount,
|
||||
FeeSide: feeSide,
|
||||
FeeMint: feeMint,
|
||||
@@ -897,6 +898,10 @@ func dlmmSwapLpFeeAmount(fee, protocolFee, hostFee uint64) decimal.Decimal {
|
||||
return lpFee
|
||||
}
|
||||
|
||||
func dlmmSwapFeeBpsString(feeBps agbinary.Uint128) string {
|
||||
return feeBps.DecimalString()
|
||||
}
|
||||
|
||||
func metaoradlmmAddLiquidityParser(tx *Tx, instruction Instruction, innerInstructions InnerInstructions, offset [2]uint) ([]Swap, [2]uint, error) {
|
||||
result := tx.rawTx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user