IETHJoin

Git Source

Inherits: IAuthorizable, IDisableable

Functions

safeEngine

Address of the SAFEEngine contract

function safeEngine() external view returns (ISAFEEngine _safeEngine);

collateralType

The collateral type that this contract handles

function collateralType() external view returns (bytes32 _cType);

Returns

NameTypeDescription
_cTypebytes32Bytes32 representation of the collateralType

decimals

Number of decimals of the collateral token

function decimals() external view returns (uint256 _decimals);

join

Join ETH in the system

function join(address _account) external payable;

Parameters

NameTypeDescription
_accountaddressAccount that will receive the ETH representation inside the system

exit

Exit ETH from the system

function exit(address _account, uint256 _wad) external;

Parameters

NameTypeDescription
_accountaddressAccount that will receive the ETH representation inside the system
_waduint256Amount of ETH to transfer to account [wad]

Events

Join

Emitted when an account joins ETH collateral into the system

event Join(address _sender, address _account, uint256 _wad);

Exit

Emitted when an account exits ETH collateral from the system

event Exit(address _sender, address _account, uint256 _wad);

Errors

ETHJoin_FailedTransfer

Throws if the transfer of ETH fails

error ETHJoin_FailedTransfer();