Repository navigation
Swap & Bridge OETHb fees to FeeSplitter - #3035
Open
shahthepro wants to merge 1 commit into
Open
shahthepro wants to merge 1 commit into
shahthepro wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Base OETHb fees still mint to the 1-of-3 fee Safe
0xBB077E71…(the Base vault'strusteeAddress, 20% fee). Today we swap and bridge them manually. This automates it: the fees reach the mainnet FeeSplitter as WETH and follow the OUSD/OETH fees to xOGN.BaseFeeBridgeModule, a Safe module on the fee Safe, operated by Talos. One call,swapAndBridge, sells the Safe's OETHb for WETH on the Curve AMO pool (0x302A…f378) and sends only the WETH that swap produced over CCIP to the FeeSplitter (0xbbE5…0464).maxSlippageBps(50 bps at deploy). The Safe can change that bound, capped at 100 bps. Since OETHb redeems 1:1, par is a valid floor and no oracle is needed.bridgeBaseFeesaction therefore waits untilbridgeFee()is at most--max-fee-bps(default 100) of the amount, about 2 OETHb today. It simulates before sending, has--dryrun, and fails loudly if the pool is below the floor or the Safe can't pay the fee. The schedule is seeded disabled (45 10 * * *, after the Base rebase and before the 12:10 mainnetfeeSplitterDistribute).setXOGNRewardRatechange. The OGN CoW harvester already sells WETH. OGN bought with it arrives through CoW settlement, so the rate setter counts it as buyback income, not a donation.base/007needs no governance. No Vault or OToken change. The fee Safe already holds the fees, so a module on it was enough; re-pointing a role or adding a new peripheral contract wasn't needed.Required ops, in this order
FeeSplitter.addAsset(WETH, 0.125e18). Without it, bridged WETH is not distributed and only a Governorrescuegets it out.enableModule(<module>), and keep some ETH for CCIP fees.bridge_base_feesin Talos.Talos impact
007deploys only the newBaseFeeBridgeModule, recorded asBaseFeeBridgeModule. The only action that uses it is the newbridgeBaseFees: it reads the address from the descriptormake deploy-basewrites and uses an inline ABI. No pinned addresses orabi/*.jsonchange, and no existing action is affected.talos-actions-inventory.mdis regenerated, which also adds theousdSusdeV4Rebalanceentry missing since #3033.Testing
addAsset(WETH)followed bydistribute()moved the WETH on to the harvester.pnpm test:tasksand typecheck pass.