Astroport <> Skip Proposal
We believe this will create a new source of sustainable, non-inflationary revenue for the Astroport community as it expands across the Cosmos
Please see here for the complete proposal, plus diagrams!
đź“ś Background
đź“ś Background
About Skip: Skip builds sovereign, custom MEV solutions for protocols and app-chains. Our mission is to help protocols recapture MEV for their users, to create more sustainable financial rewards.
Astroport MEV: Since Astroport is a DEX, it generates a significant amount of MEV. DEX MEV can take multiple forms, the main ones being:
✅ Backrunning (cyclic arbitrage): this is “good MEV” - capturing it does not affect execution price, and if not recaptured will otherwise leak out of the Astroport ecosystem. These are MEV recapture mechanisms that happen after your trade.
❌ Frontrunning/Sandwiching: this is “bad MEV” - capturing it involves forcing retail users to pay artificially worse execution prices, by buying up assets before you intend to trade, to force the trader to pay a worse price. Skip will not be introducing or recapturing MEV by this method, and will work with the core team to prevent this kind of extraction by any parties, and the proposed solution solves for this.
❌ JIT Liquidity: it is unclear whether this kind of MEV this is positive or negative - it involves frontrunning a trade in a concentrated liquidity DEX to inject liquidity at a very tight band, giving the trader better execution price, but giving the injector all the LP fees. This damages the income of passive LPs over a wider band. Skip will not implement this kind of MEV until Astroport’s concentrated liquidity solutions mature further, and if the community votes to introduce it.
Astroport MEV is already being captured today, and is leaking out of the system. This proposed integration gives the Astroport community a voice at the table in their own MEV recapture to prevent MEV value leakage away from Astroport users.
Skip already enables an active marketplace for Astroport MEV recapture (here is a >$1500 Astroport arb on Terra2 recently that was captured via the Skip Select auction: finder.terra.money/mainnet/blocks/3857105), and is deeply familiar with its MEV ecosystem. We are excited to bring LPs and users to the table via this implementation.
Proposed Solution
Proposed Solution
Stage 1: Frontend-Implemented, Community-Controlled Backrunning Bot
- Skip wishes to design and build a Skip-maintained backrunning bot that returns MEV revenue to the Astroport community on a per-transaction basis and has spent the last three months familiarizing itself with Astroport (including through discussions with Astroport developers) in order to be in a strong position to do so.
- This solution uses Skip’s existing auction system (”Skip Select”) to create an atomic backrunning tx for each trade. It does not modify the contents of any trades or introduce any new security assumptions.
- Notably, it does not affect the execution price of the trade in any way (as the backrun happens after the original trade)
- Note that transactions from the frontend will be sent through a private, backrunning-specific RPC endpoint that ensures first right to backrun the transaction (and prevents any frontrunning by other parties!), thus ensuring agreed payout guarantees to the Astroport community
-
User Experience
- The app.astroport.fi frontend will by default send transactions to this “backrun swap” RPC (if available on that chain), and users can untick a box to submit to the regular mempool instead (and not receive any rewards, forfeiting backrunning MEV to mempool searchers)
- If chosen, a “backrun swap” will return MEV funds via a
MsgSend
to the user automatically on chain- This could also be used to make “gas-free transactions”
- Note, in the case of chains where Skip does not have 100% validator coverage, a “backrun swap” may take longer than a normal swap as the RPC waits until a Skip validator is proposing a block
- This may be an extra 5-30s, and much shorter on fast chains (e.g. Injective)
- This can be configured to be capped (e.g. attempt to backrun for 30s, otherwise send to regular mempool)
- Stage 2 will remove this timeout
- Delphi Labs, the owner/operator of app.astroport.fi, has indicated its willingness to integrate the necessary changes if this proposal is approved by the Astroport Assembly.
Stage 2: Router & Smart Contract [Future]
- Although not yet fully designed, this approach will make backrunning more trustless by tying the Astroport router to a wasm smart contract that will automatically backrun every transaction (i.e. on-chain logic similar to ProtoRev on Osmosis)
- This is part of our progressive decentralization approach to move logic on-chain, and removes Skip and its infrastructure as an intermediary
- This would not require coordination with validators as Stage 1 does, and would remove any submission delays
-
User Experience
- There would be no noticeable UX differences for users via this approach, except that txs would be “upgraded” to recapture backrunning after the original trade, and broadcasted as an atomic transaction with the backrun included
Future Explorations
- Skip will maintain lines of communication with Astroport developers and the broader Astroport community to explore further decentralization and new designs, especially those that include multiple searchers in the process of recapture (similar to how the Skip Select auction works today)
- Skip will continue to explore cross-chain MEV recapture solutions as Astroport expands, between outposts on different chains
⏱ Timeline
⏱ Timeline
-
April 2023: Deploy Stage 1
- 1st → Terra2
- 2nd → Injective
- Skip will continue to add support as Astroport deploys on more chains
-
June/July 2023: Deploy Stage 2
- Same chain deployment schedule as Stage 1
đź’° Compensation
đź’° Compensation
Due to the initial costs of building this MEV recapture infrastructure, we propose compensation for this implementation to follow the same compensation agreement Skip has with the Osmosis community for a similar product (ProtoRev
). Note that the implementation details differ dramatically between the products.
Details on this funding agreement are on the Osmosis grants page and the passed Prop 341 on Osmosis.
Initial Grant
-
$75k in ASTRO token, vested over 3 milestones:
- $25k upfront to kick off resourcing and development
- $25k upon working testnet implementation, according to Stage 1 above
- $25k upon 4 weeks of functional mainnet implementation, on at least one chain, according to Stage 1 above
Backrunning Payments Distribution
-
Profits to Astroport Community
- 80% (specific distribution to be decided by the Astroport community in a separate proposal)
-
Skip fee
- 20% (decreasing by 50% per year until stabilizing at 5%)
🤝 Contact
Please reach out to us if interested in discussing or collaborating!
Twitter: @SkipProtocol
Discord: https://discord.gg/9Uq8NFMQJ7
Site: skip.money
Telegram: @magmar100