Summary
The proposal aims to redress a user who lost 90% of a USDC cross-chain withdrawal from dYdX via Osmosis, by returning a portion of ProtoRev profits while keeping 20% for the Osmosis community as a bounty.
What happened
On August 8, a dYdX user lost 964,482.780794 USDC, comprising over 90% of their equity, due to extremely high slippage when withdrawing from dYdX via Osmosis.
-
dYdX user dydx12e0c4wcw72rprzntrvnfk0egn8q9d2tzmqyjf4 attempted to withdraw ~1,069,290 USDC from dYdX to Ethereum chain
-
User did not realize that because their withdrawal exceeded $1 million, the CCTP protocol could not support that amount for a 1:1 conversion route and instead they were defaulted to an Axelar bridging route that swapped on the Osmosis DEX, and clicked through withdrawal message
-
Due to low liquidity conditions on the USDC.eth.axl/USDC pairs on Osmosis, the user lost over 90% to slippage, receiving only ~104,807 USDC.eth.axl for their ~1,069,183 USDC: https://chainsco.pe/osmosis/tx/3428B4FC45A7E2E756A27FDCD4801F51A6E890A119751E7DB0EECD477B869DBF
-
The ~$964k lost on the swap was captured by ProtoRev, which captures all MEV on Osmosis, with 95% of that profit (~$916k USDC) accruing to Osmosis community: https://www.mintscan.io/osmosis/tx/3428B4FC45A7E2E756A27FDCD4801F51A6E890A119751E7DB0EECD477B869DBF?sector=json
Proposed reimbursement and bounty
The proposal asks that the Osmosis community vote to return 80% of its share of ProtoRev profits (~732,891 USDC) to the user’s address osmo12e0c4wcw72rprzntrvnfk0egn8q9d2tz6zexls. The Osmosis community would keep the remaining 20% of its profit (~183,223 USDC) as a bounty.
To enable the Osmosis community to keep a healthy 20% bounty:
-
Skip Protocol has agreed to refund its 5% share of ProtoRev profits (~48,216 USDC) to the user; and
-
dYdX commits to matching Skip’s contribution and addressing the user’s remaining shortfall should the proposal be granted
What’s being done to improve
From dYdX
The dYdX frontend user interface displayed the amount in and the amount out to the user. However in the instance of large withdrawal slippage, the UI will going forward display a more prominent warning to the user and a check box to opt into the execution.
For transactions greater than $1M, CCTP can’t process them and so the Skip Go API may return a route that requires a swap with large price impact using Axelar if no other safeguards are in place. We understand that Skip is updating their API to never return routes where the difference in USD value is >$10K as an additional safeguard.
From Skip
By default, the Skip Go API prevents routes with greater than 10% price impact and greater than 10% differences in USD value between the input and output assets. This behavior has historically caused issues for users transacting in small amounts where the bridging fee exceeds the threshold, preventing the routes from happening.
For that reason, clients in some cases disable this safeguard to prevent small withdrawals from being systematically blocked. In this case while disabled, the API returned a route that involved swapping to USDC.eth.axl due to CCTP’s $1m limit. To prevent this from happening in the future, the Skip Go API will prevent any route involving a loss of $10k or greater, even when default protections are disabled.
Why grant this proposal
This loss primarily resulted from the combination of user action and the bridge routing logic, which unintentionally directed funds into a low-liquidity market on Osmosis, resulting in the loss of 90% of the withdrawal value for the user. Due to Osmosis’ ProtoRev module, this value is now held by a known third party, the Osmosis DAO.
While Osmosis bears no operational fault in the routing decision, returning a portion of the captured value demonstrates goodwill, strengthens ecosystem partnerships, and reinforces user trust.
Granting this proposal would also strengthen partnership between the dYdX and Osmosis communities, which includes USDC bridging to and from dYdX Chain as well as an upcoming integration permitting dYdX front-end users to access DYDX-USD liquidity pools on Osmosis, generating deeper liquidity and fees for Osmosis community. dYdX is a long-running perpetuals DEX project with over $1.5 trillion in cumulative perps volume, and the only significant perps DEX on Cosmos.
We appreciate the Osmosis community’s consideration of this proposal and look forward to feedback and discussion.