ERC20VaultHandler

Extends IVaultHandler allowing the use of an ERC20 as collateral.

Code

ERC20VaultHandler.sol

Address

Mainnet

ContractAddress
DAI VaultHandler0x443366a7a5821619d8d57405511e4fadd9964771

Rinkeby

ContractAddress
DAI VaultHandler0x8eD3A1A6221c9B6DA1Af4F21dD98646137bCa5ad

State-Changing Functions

constructor

constructor(
Orchestrator _orchestrator,
uint256 _divisor,
uint256 _ratio,
uint256 _burnFee,
uint256 _liquidationPenalty,
address _tcapOracle,
TCAP _tcapAddress,
address _collateralAddress,
address _collateralOracle,
address _ethOracle,
address _rewardHandler,
address _treasury
)
IVaultHandler(
_orchestrator,
_divisor,
_ratio,
_burnFee,
_liquidationPenalty,
_tcapOracle,
_tcapAddress,
_collateralAddress,
_collateralOracle,
_ethOracle,
_rewardHandler,
_treasury
);

Called once the contract it's deployed, sets the orchestrator as owner. It also sets the vault counter to 1 as 0 is reserved for empty objects.