Giter Club home page Giter Club logo

auction-finance-x-protocol's Introduction

Dutch Action With NFT Lending

This repository contains the smart contracts source code and NFT Lending mechanism for Dauth Action. The repository uses foundry as development environment for compilation, testing and deployment tasks.

Setup

The repository uses Chainlink oracle to obtain NFT floor prices, and Chainlink oracle only provides NFT quotes for the Goerli testnet

Follow the next steps to setup the repository:

  • Create an environment file named .env and fill the next environment variables
# Add the Goerli testnet's RPC URL to your local environment
GOERLI_RPC_RUL=""

Life Cycle

Follow the next steps can assist in comprehending this repository by reviewing the function

# To participate in the Dutch auction, obtaining SToken through collateralization is required beforehand
Step 1: CollateralPool.collateralize()

# The Auctioneer calls setAuction to start the Dutch auction
Step 2: DutchAuction.setAuction()

# The collateral provider can proceed to bid after the Dutch auction has started
Step 3: DutchAuction.bid()

# The auctioneer must give the collateral provider the auction item and refund after the Dutch auction has ended
Step 4: DutchAuction.claimAuctionItem() -> PunkWarriorErc721.transferAuctionItem()

# The SToken obtained from the auction house can be exchanged for ETH
Step 5: DutchAuction.withdraw()

# If the collateral providers no longer need to participate in the Dutch auction, they can redeem their own NFT
Step 6: CollateralPool.redeem()

auction-finance-x-protocol's People

Contributors

liam731 avatar

Watchers

 avatar

Forkers

dashbaord202401

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.