Skip to content

ICollateralErc20

Description

Source: contracts/interfaces/ICollateralErc20.sol

External Functions

close

Source

Details

Signature

close(uint256 id) returns (uint256 amount, uint256 collateral)

Visibility

external

State Mutability

``

deposit

Source

Details

Signature

deposit(address borrower, uint256 id, uint256 amount) returns (uint256 principal, uint256 collateral)

Visibility

external

State Mutability

``

draw

Source

Details

Signature

draw(uint256 id, uint256 amount) returns (uint256 principal, uint256 collateral)

Visibility

external

State Mutability

``

liquidate

Source

Details

Signature

liquidate(address borrower, uint256 id, uint256 amount)

Visibility

external

State Mutability

``

open

Source

Details

Signature

open(uint256 collateral, uint256 amount, bytes32 currency) returns (uint256 id)

Visibility

external

State Mutability

``

repay

Source

Details

Signature

repay(address borrower, uint256 id, uint256 amount) returns (uint256 principal, uint256 collateral)

Visibility

external

State Mutability

``

withdraw

Source

Details

Signature

withdraw(uint256 id, uint256 amount) returns (uint256 principal, uint256 collateral)

Visibility

external

State Mutability

``