no two hp swap slippage

This commit is contained in:
thloyi
2026-04-20 16:31:18 +08:00
parent a765fafddd
commit 36da96eeaf
2 changed files with 3 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ var ()
func main() {
var slot uint64 = 414432104
var slot uint64 = 414437304
client := rpc.New("https://staked.helius-rpc.com?api-key=5adcf1f9-5719-43d1-bf3f-c2d4e1e5f94d")
var rewards = false
var version uint64 = 0

View File

@@ -1152,6 +1152,7 @@ func orcaWhirPoolTwoHopSwapParser(tx *Tx, instruction Instruction, innerInstruct
limitMint,
actualLimitAmount,
)
swaps[0].SlippageBps = decimal.Zero
return swaps, offset, nil
}
@@ -1359,5 +1360,6 @@ func orcaWhirPoolTwoHopSwapV2Parser(tx *Tx, instruction Instruction, innerInstru
limitMint,
actualLimitAmount,
)
swaps[0].SlippageBps = decimal.Zero
return swaps, offset, nil
}