navi: fix reward collection for NAVI-VSUI and NAVI-LOOP-USDT-USDC - #95
Merged
Conversation
NAVI-VSUI: route the NAVX reward collect through Cetus instead of Bluefin. The Bluefin NAVX-SUI pool holds ~90M liquidity against Cetus' ~1.6e15 at the same 2500 fee tier, so the swap aborted (code 1) and took deposit and withdraw down with it. collect_v3_rewards_with_two_swaps takes the Cetus pools with the same <T,R,S> type args and both pools are already correctly ordered, so this is a straight swap of function, pool lookups and global config. NAVI-LOOP-USDT-USDC: add the missing incentive-v3 collect branches. Neither collectAndSwapRewards nor collectAndSwapRewardsTxb handled supplyAsset USDT, so no collect calls were emitted and update_pool_v3's has_unclaimed_rewards assert aborted 15151 on withdraw. Routes rewards through alphafi_navi_usdt_usdc_investor::collect_v3_rewards_with_three_swaps as reward -> SUI -> USDC -> USDT. Only vSUI is paying today; NAVX is included so a future reward change does not silently reintroduce the same abort. Both verified by mainnet dry-run.
11felix
approved these changes
Aug 4, 2026
rg-alpha
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NAVI-VSUI: route the NAVX reward collect through Cetus instead of Bluefin. The Bluefin NAVX-SUI pool holds ~90M liquidity against Cetus' ~1.6e15 at the same 2500 fee tier, so the swap aborted (code 1) and took deposit and withdraw down with it. collect_v3_rewards_with_two_swaps takes the Cetus pools with the same <T,R,S> type args and both pools are already correctly ordered, so this is a straight swap of function, pool lookups and global config.
NAVI-LOOP-USDT-USDC: add the missing incentive-v3 collect branches. Neither collectAndSwapRewards nor collectAndSwapRewardsTxb handled supplyAsset USDT, so no collect calls were emitted and update_pool_v3's has_unclaimed_rewards assert aborted 15151 on withdraw. Routes rewards through
alphafi_navi_usdt_usdc_investor::collect_v3_rewards_with_three_swaps as reward -> SUI -> USDC -> USDT. Only vSUI is paying today; NAVX is included so a future reward change does not silently reintroduce the same abort.
Both verified by mainnet dry-run.