An open API service indexing awesome lists of open source software.

https://github.com/dodoex/dodo-example


https://github.com/dodoex/dodo-example

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# DODO-Example

Provide code examples for developers. Help developers quickly build Defi products with DODO

### Contents

- How to integrate DODO-API with your own contract: [DODOApiEncapsulation.sol](https://github.com/DODOEX/dodo-example/blob/main/contracts/DODOApiEncapsulation.sol)

- How to integrate DODOProxy and use your own contract to trade with DODOV1 and DODOV2 pool: [DODOProxyIntegrate.sol](https://github.com/DODOEX/dodo-example/blob/main/contracts/DODOProxyIntegrate.sol)

- How to use DODOV2 free FlashLoan: [DODOFlashloan.sol](https://github.com/DODOEX/dodo-example/blob/main/contracts/DODOFlashloan.sol)

- How to off-chain calculate the trading results of DODOV1 or DODOV2 pool using PMM algorithm: [pmmOffchainCalc.ts](https://github.com/DODOEX/dodo-example/blob/main/scripts/pmmOffchainCalc.ts)