https://github.com/dodoex/dodo-example
https://github.com/dodoex/dodo-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dodoex/dodo-example
- Owner: DODOEX
- Created: 2021-07-19T14:20:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T11:57:20.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T10:14:11.215Z (about 1 year ago)
- Language: Solidity
- Size: 84 KB
- Stars: 36
- Watchers: 6
- Forks: 29
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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)