Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 7.4 KB

PLUGIN_SPECIFICATION.md

File metadata and controls

51 lines (43 loc) · 7.4 KB

Technical Specification

Warning This documentation is a template and shall be updated.

About

This documentation describes the smart contracts and functions supported by the boilerplate plugin.

Smart Contracts

Smart contracts covered by the plugin shall be described here:

Contract Address
OETH Zapper 0x9858e47bcbbe6fbac040519b02d7cd4b2c470c66
OETH Vault 0x39254033945aa2e4809cc2977e7087bee48bd7ab
ETH/OETH Curve Pool 0x94b17476a93b3262d87b9a326965d1e91f9c13e7
Curve Router 0x99a58482bd75cbab83b27ec03ca68ff489b5788f
OUSD Vault 0xe75d77b1865ae93c7eaa3040b038d7aa7bc02f70
OUSD Flipper 0xcecad69d7d4ed6d52efcfa028af8732f27e08f70
UniswapV3 Router 0xe592427a0aece92de3edee1f18e0157c05861564
OUSD/3CRV Curve Pool 0x87650d7bbfc3a9f10587d7778206671719d9910d
ETH/OETH Curve Pool 0x94b17476a93b3262d87b9a326965d1e91f9c13e7
Curve Router 0x99a58482bd75cbab83b27ec03ca68ff489b5788f
OUSD Vault 0xe75d77b1865ae93c7eaa3040b038d7aa7bc02f70
OUSD Flipper 0xcecad69d7d4ed6d52efcfa028af8732f27e08f70
WOETH 0xdcee70654261af21c44c093c300ed3bb97b78192
WOUSD 0xd2af830e8cbdfed6cc11bab697bb25496ed6fa62

Functions implemented:

Function Selector Displayed Parameters
deposit 0xd0e30db0
depositSFRXETH 0xd443e97d
uint256 amount
uint256 minOETH
mint 0x156e29f6
address _asset
,uint256 _amount
uint256 _minimumOusdAmount
redeem 0x7cbc2373
uint256 _amount
uint256 _minimumUnitAmount
exchange 0x3df02124
int128 i
int128 j
uint256 _dx
uint256 _min_dy
exchange_underlying 0xa6417ed6
int128 i
int128 j
uint256 _dx
uint256 _min_dy
exchange_multiple 0x353ca424
address[9] _route
uint256 _amount
uint256 _expected
exactInput 0xc04b8d59
bytes path
address recipient
uint256 amountIn
uint256 amountOutMinimum
exactInputSingle 0x414bf389
address tokenIn
address tokenOut
address recipient
uint256 amountIn
uint256 amountOutMinimum
buyOusdWithUsdt 0x35aa0b96
uint256 amount
sellOusdForUsdt 0xcb939053
uint256 amount
buyOusdWithDai 0x5981c746
uint256 amount
sellOusdForDai 0x8a095a0f
uint256 amount
buyOusdWithUsdc 0xbfc11ffd
uint256 amount
sellOusdForUsdc 0xc6b68169
uint256 amount
redeem 0xba087652
uint256 assets
address receiver
redeem 0xba087652
uint256 shares
address receiver