LinkedCOL.sol
The collateral contract for the linked protocol contains the logic for the collateral positions of the linked assets instance.
initialize()
Below the overview of all functions in the collateral 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 openCP(uint amount) whenNotPaused payable external returns (bool success);
function transfer(address recipient, uint256 id) whenNotPaused external returns (bool success);
function depositETHCP(uint id) whenNotPaused payable external returns (bool success);
function withdrawETHCP(uint256 amount, uint id) whenNotPaused payable external returns (bool success);
function depositTokenCP(uint256 amount, uint id) whenNotPaused payable external returns (bool success);
function withdrawTokenCP(uint256 amount, uint id) whenNotPaused payable external returns (bool success);
function liquidateCP(address account, uint id) whenNotPaused payable external returns (bool success);
#Non state changing functions
function individualCPdata(address account, uint256 id) external view returns (uint256[2] memory);
function dataTotalCP() public view returns (uint256[3] memory);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.
openCP()
transfer()
depositETHCP()
withdrawETHCP()
depositTokenCP()
withdrawTokenCP()
Non state change functions
individualCPdata()
dataTotalCP()
Last updated
Was this helpful?