Writer
Introduction
It is a contract to write ACO tokens. Through the data obtained on 0x protocol to market sell ACO tokens is possible to mint and market sell the tokens in only one step.
Code
Address
ACOWriter.sol is deployed at 0xE7597F774fD0a15A617894dc39d45A28B97AFa4f on the Ethereum mainnet.
Read-Only Functions
weth
function weth() external view returns(address);
The WETH address 0x.
erc20proxy
function erc20proxy() external view returns(address);
Address for 0x ERC20 proxy.
State-Changing Functions
write
function write(address acoToken, uint256 collateralAmount, address exchangeAddress, bytes calldata exchangeData) external payable;
Function to write ACO tokens. The tokens are minted then sold on the 0x exchange. The transaction sender receives the premium.
acoTokenAddress of the ACO token.collateralAmountAmount of collateral to be deposited.exchangeAddressAddress to sell the tokens returned by 0x API.exchangeDataData to be sent to the 0x exchange.
ABI
Last updated
Was this helpful?