LinkedEXC.sol
The exchange contract for the linked protocol uses the oracle price to trade assets for ETH.
Below the overview of all functions in the exchange contract. The detailed description of a state change function can be found in the tab of the specific function.
#State changing functions
function initialize(address proxyAddress) external returns (bool success);
function depositTKN(address receiver, uint256 amount) notpaused external returns (bool);
function depositETH() notpaused external payable returns (bool);
function withdrawTKN(uint256 amount) notpaused external payable returns (bool);
function withdrawETH(uint256 amount) notpaused external returns (bool);
function withdrawETHpause() paused external returns (bool);
#Non state changing functions
function totalReserve() external view returns (uint256[2] memory);
function claimOfTKN(address account) public view returns (uint256);
function claimOfETH(address account) public view returns (uint256);High overview
State change functions
initialize() can only be called once and is used to set the contract addresses of the proxy contract for this linked asset instance.
depositTKN()
depositETH()
withdrawTKN()
withdrawETH()
withdrawETHpause()
Non state change functions
totalReserve()
claimOfTKN()
claimOfETH()
Last updated
Was this helpful?