Protocol for disposing of unwanted toxic assets using a Dutch auction.
Toxic assets can be bad debt, a bunch of dust on your wallets you want to get rid off at any price, or even actual physical tokenized toxic uranium in your backyard.
It's crosschain with CCIP compatible so people from other chains can buy the toxic assets.
The Dutch auction starts off and goes on for a select period of time during which the slope of the invariant curve changes (n):
As time goes on, the more you buy, the better the deal you're going to get, but you're not the only one noticing this good deal!
Screen.Recording.2024-05-04.at.2.53.32.AM.mov
3D view: https://www.desmos.com/3d/svmgalljva
- Slippage options
- Partial fill offers when using CCIP
- Refund CCIP users when overpaying due to latency from confirmation time affecting n
Insert X, and insert the willing to accept Y> or more amount of sheep.
Run locally for testing with:
npm install http-server
then
npx http-server
or
http-server
-
Deploy CrossChainBuyer.sol
- Call
allowlistDestinationChain
, inputting Chain Selectors for other CCIP chains - Transfer LINK to DustAuction to fund transfers
- Call
-
Deploy DustAuction.sol on CCIP chains
- Call
allowListDestinationAndSourceChain
, inputting Chain Selectors for other CCIP chains - Call
allowListSender
, inputting the contract address of DustAuction.sol for all deployed instances - Transfer LINK to DustAuction to fund transfers
- Call
Chain Selectors
-
Fuji -> Sepolia Eth: 16015286601757825753
-
Fuji -> Sepolia Base: 10344971235874465080
-
Sepolia Eth -> Fuji: 14767482510784806043
-
Sepolia Eth -> Sepolia Base: 10344971235874465080
-
Sepolia Base -> Fuji: 14767482510784806043
-
Sepolia Base -> Sepolia: 16015286601757825753
ChainIDs
- Avalanche Fuji:
43113
- Ethereum Sepolia:
11155111
- Base Sepolia:
84532
Router
- Fuji:
0xF694E193200268f9a4868e4Aa017A0118C9a8177
- Ethereum Sepolia:
0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59
- Base Sepolia:
0xD3b06cEbF099CE7DA4AcCf578aaebFDBd6e88a93
LINK
- Fuji:
0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846
- Sepolia Eth:
0x779877A7B0D9E8603169DdbD7836e478b4624789
- Sepolia Base:
0xE4aB69C077896252FAFBD49EFD26B5D171A32410
USDC
- Fuji:
0x5425890298aed601595a70AB815c96711a31Bc65
- Sepolia Eth:
0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
- Sepolia Base:
0x036CbD53842c5426634e7929541eC2318f3dCF7e
- DustAuction:
0xE679fD923B131F15FfE31AAE653504afeB2982A1
- CrossChainBuyer:
0x195756383785151Aa3E1850dAF2078f1790638D0
- DustAuction:
0xc02dD2C46441627AD189D7f31F0D6Ca3121d856F
- CrossChainBuyer:
0xCe3a3A5AC2F132659B53a30945Cb804FAAE575A4
- DustAuction:
0x095E71ef8d927db614c8B86029938555Da7a1EDf
- CrossChainBuyer:
0x5dc0112ba08B60f66796f61610ea23c7A3f12Ec5
- DustAuction:
0x9Ee6b0FD155FDE766e52B0A3cFC4B51cC95e77Ab
- DustAuction:
0xbCB715478a95E6157Ad395273477371424fF6b66
Marcus Wentz for their mentoring & Front End Template