ACOFlashExercise.sol
is deployed at 0x8992eea8B6D388af1Df04800E69e66b2d8799895
on the Ethereum mainnet. function uniswapFactory() external view returns(address);
function uniswapRouter() external view returns(address);
function weth() external view returns(address);
function getUniswapPair(address acoToken) external view returns(address);
acoToken
Address of the ACO token.function getExerciseData(address acoToken, uint256 tokenAmount, address[] calldata accounts) external view returns(uint256, uint256);
acoToken
Address of the ACO token.tokenAmount
Amount of tokens to be exercised.accounts
The array of addresses to be exercised. Whether the array is empty the exercise will be considered as executed using the methods exercise
or exerciseFrom
.function getEstimatedReturn(address acoToken, uint256 tokenAmount) external view returns(uint256);
exercise
or exerciseFrom
.acoToken
Address of the ACO token.tokenAmount
Amount of tokens to be exercised.function flashExercise(address acoToken, uint256 tokenAmount, uint256 minimumCollateral, uint256 salt) external;
acoToken
Address of the ACO token. tokenAmount
Amount of tokens to be exercised. minimumCollateral
The minimum amount of collateral accepted to be received on the flash exercise. salt
A random number used to calculate the start index of the array of accounts to be exercised.function flashExerciseAccounts(address acoToken, uint256 tokenAmount, uint256 minimumCollateral, address[] calldata accounts) external;
acoToken
Address of the ACO token. tokenAmount
Amount of tokens to be exercised. minimumCollateral
The minimum amount of collateral accepted to be received on the flash exercise. accounts
The array of addresses to try to exercise and get collateral from.