Code Monkey home page Code Monkey logo

dust-auction's Introduction

dust-auction

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): Screenshot 2024-05-04 at 2 19 42 AM

The swap function becomes: Screenshot 2024-05-04 at 2 19 16 AM

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 Screenshot 2024-05-04 at 2 56 18 AM

CCIP purchase of toxic asset: Screenshot 2024-05-04 at 12 47 01 AM

Future Plans

  • 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.

Front End Initialize

Run locally for testing with:

⚠️ Node.js version v16.14.2 is recommended to avoid errors running the website locally. ⚠️

npm install http-server

then

npx http-server

or

http-server

Deployment Steps

  • Deploy CrossChainBuyer.sol

    • Call allowlistDestinationChain, inputting Chain Selectors for other CCIP chains
    • Transfer LINK to DustAuction to fund transfers
  • 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

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

CCIP Supported Deployments

Ethereum Sepolia

  • DustAuction: 0xE679fD923B131F15FfE31AAE653504afeB2982A1
  • CrossChainBuyer: 0x195756383785151Aa3E1850dAF2078f1790638D0

Base Sepolia Testnet

  • DustAuction: 0xc02dD2C46441627AD189D7f31F0D6Ca3121d856F
  • CrossChainBuyer: 0xCe3a3A5AC2F132659B53a30945Cb804FAAE575A4

Avalanche Fuji Testnet

  • DustAuction: 0x095E71ef8d927db614c8B86029938555Da7a1EDf
  • CrossChainBuyer: 0x5dc0112ba08B60f66796f61610ea23c7A3f12Ec5

Non-CCIP Supported Deployments

Mantle Sepolia Testnet

  • DustAuction: 0x9Ee6b0FD155FDE766e52B0A3cFC4B51cC95e77Ab

Polygon zkEVM Cardona Testnet

  • DustAuction: 0xbCB715478a95E6157Ad395273477371424fF6b66

Acknowledgements

Marcus Wentz for their mentoring & Front End Template

dust-auction's People

Contributors

tranquil-flow avatar v-for-vasya avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.