Key Components

Key components

Loan struct: Contains information about each loan, such as the lender, borrower, tokenId, loan amount, creation time, start and end time, accepted token, and loan status.

Whitelisting tokens: DPS allows the contract owner to whitelist tokens that can be used for loan repayments.

Depositing NFTs: Lenders deposit their Uniswap V3 NFT positions and set the loan terms. Borrowing NFTs: Borrowers can take the available NFT positions on loan, paying the loan amount to the lender in the accepted token.

Claiming Fees: Borrowers can claim the trading fees generated by their borrowed NFT positions.

Technical Details

DPS employs algorithms to handle the complexities of Uniswap V3 liquidity provision. The protocol leverages the OpenZeppelin library for ERC20 and ERC721 token standards and interfaces with Uniswap V3's Position Manager. By using algebra and various algorithms, DPS simplifies the process of managing Uniswap V3 LP positions, making it easier for users to participate in liquidity provision. More technical details are discussed deeply on Smart Contract and sub-pages.

Last updated