ETHJoin
Inherits: Authorizable, Disableable, IETHJoin
This contract allows to connect the SAFEEngine to native ETH collateral
All Join adapters need to implement two basic methods: join
and exit
State Variables
safeEngine
Address of the SAFEEngine contract
ISAFEEngine public safeEngine;
collateralType
The collateral type that this contract handles
bytes32 public collateralType;
decimals
Number of decimals of the collateral token
uint256 public decimals;
Functions
constructor
constructor(address _safeEngine, bytes32 _cType) Authorizable(msg.sender);
Parameters
Name | Type | Description |
---|---|---|
_safeEngine | address | Address of the SAFEEngine contract |
_cType | bytes32 | Bytes32 representation of the collateral type |
join
Join ETH in the system
function join(address _account) external payable whenEnabled;
Parameters
Name | Type | Description |
---|---|---|
_account | address | Account that will receive the ETH representation inside the system |
exit
Exit ETH from the system
function exit(address _account, uint256 _wei) external;
Parameters
Name | Type | Description |
---|---|---|
_account | address | Account that will receive the ETH representation inside the system |
_wei | uint256 |