There are three main token adapter types:
CollateralJoin - allows standard ERC20 tokens to be deposited for use with the system.
ETHJoin - allows native Ether to be used with the system.
CoinJoin - allows users to withdraw their system coins from the protocol into a standard ERC20 token (and vice-versa).
safeEngine - storage of the
collateralType - id of the
CollateralType for which a
CollateralJoin is created for.
collateral - the address of the
collateralType for transferring.
systemCoin - the address of the
contractEnabled - an access flag for the adapter.
decimals - decimals for the collateral type.
join - join tokens into the system
exit - exit tokens from the system
disableContract - disable the adapter and only allow
All adapter contracts serve a similar purpose. They manage the flow of collateral and system coins in and out of the system using
CollateralJoin is meant to change the