ETHVaultHandler

Verified contract

Active on Ethereum with 303 txns
Deployed by via 0x34604e6a at 14757663
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $1,035.97
ERC-20
--
ERC-20
--
0xa968d7f6c475dfd1791470daeb51417cd28251d3c026278bc72450fb90a7db7a
0x5111019715d8812a7b2adda3ada940c9d2912198efc774956bed2970f0cc53ed
0x0a6231ccf6c3b810e33145efb957a60aebecf5320472c87b3d9d61ca9c4903ef
0x685de5a8d5c1bf4987607cb263f322b247786ba54a06fee93b812a8964024b81
0x0c1095da5efd9ff260124d888c668a67158dc1033cc9b3c14915b884fdd7c773
0xd3e2e16d090678d6a00f1dcf6dde377f817dbcc7172fbcf6d9154052eb2008d6
0x2b5298d399460b4346b737322b91ce26614963a9fd14eeb7b6f1c78c209afee6
0x90e84b5e459b5efc0ae36559f6e077e3bfc011e55ca3968787a9c730db67517c
0xa654b63b8b0102086e6e6449de4e7fa2d54141ff84565136892de79872384ced
0x900b3e8fb81538e7d8ef8438040c77fc7e43ff4d0a2f1c4abc8aa03a8da6bc9d

Functions
Getter at block 20948299
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ETHPriceOracle(view returns (address)
0x2cfeaf282fe9ae050b210e7bda65d288c40c6104
MAX_DECIMAL_PLACES(view returns (uint8)
18
MAX_FEE(view returns (uint256)
1000
MIN_RATIO(view returns (uint256)
100
TCAPPrice(view returns (uint256 price)
223604392132600000000
TCAPToken(view returns (address)
0x16c52ceece2ed57dad87319d91b5e3637d50afa4
burnFee(view returns (uint256)
50
collateralContract(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
collateralDecimalsAdjustmentFactor(view returns (uint256)
1
collateralPriceOracle(view returns (address)
0x2cfeaf282fe9ae050b210e7bda65d288c40c6104
counter(view returns (uint256 _value)
115
divisor(view returns (uint256)
10000000000
liquidationPenalty(view returns (uint256)
19
minimumTCAP(view returns (uint256)
20000000000000000000
oracleDigits(view returns (uint256)
10000000000
owner(view returns (address)
0x373c74bce7893097ab26d22f05691907d4f2c18e
paused(view returns (bool)
false
ratio(view returns (uint256)
125
tcapOracle(view returns (address)
0xa4e581bd159b869e8290707a7fbf841fe7fe97b6
treasury(view returns (address)
0xa54074b2cc0e96a43048d4a68472f7f046ac0da8
Read-only
getFee(uint256 _amountview returns (uint256 fee)
getOraclePrice(address _oracleview returns (uint256 price)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
getVault(uint256 _idview returns (uint256uint256addressuint256)
getVaultRatio(uint256 _vaultIdview returns (uint256 currentRatio)
hasRole(bytes32 roleaddress accountview returns (bool)
liquidationReward(uint256 _vaultIdview returns (uint256 rewardCollateral)
requiredCollateral(uint256 _amountview returns (uint256 collateral)
requiredLiquidationTCAP(uint256 _vaultIdview returns (uint256 amount)
supportsInterface(bytes4 _interfaceIdpure returns (bool)
userToVault(addressview returns (uint256)
vaults(uint256view returns (uint256 Iduint256 Collateraluint256 Debtaddress Owner)
State-modifying
addCollateral(uint256 _amount
addCollateralETH(payable 
burn(uint256 _amountpayable 
createVault(
grantRole(bytes32 roleaddress account
liquidateVault(uint256 _vaultIduint256 _maxTCAPpayable 
mint(uint256 _amount
pause(
recoverERC20(address _tokenAddressuint256 _tokenAmount
removeCollateral(uint256 _amount
removeCollateralETH(uint256 _amount
renounceOwnership(
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setBurnFee(uint256 _burnFee
setLiquidationPenalty(uint256 _liquidationPenalty
setMinimumTCAP(uint256 _minimumTCAP
setRatio(uint256 _ratio
setTreasury(address _treasury
transferOwnership(address newOwner
unpause(
Events
CollateralAdded(address indexed _owneruint256 indexed _iduint256 _amount
CollateralRemoved(address indexed _owneruint256 indexed _iduint256 _amount
NewBurnFee(address indexed _owneruint256 _burnFee
NewLiquidationPenalty(address indexed _owneruint256 _liquidationPenalty
NewMinimumTCAP(address indexed _owneruint256 _minimumTCAP
NewRatio(address indexed _owneruint256 _ratio
NewTreasury(address indexed _owneraddress _tresury
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
Recovered(address _tokenuint256 _amount
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokensBurned(address indexed _owneruint256 indexed _iduint256 _amount
TokensMinted(address indexed _owneruint256 indexed _iduint256 _amount
Unpaused(address account
VaultCreated(address indexed _owneruint256 indexed _id
VaultLiquidated(uint256 indexed _vaultIdaddress indexed _liquidatoruint256 _liquidationCollateraluint256 _reward
Constructor
constructor(address _orchestratoruint256 _divisoruint256 _ratiouint256 _burnFeeuint256 _liquidationPenaltyaddress _tcapOracleaddress _tcapAddressaddress _collateralAddressaddress _collateralOracleaddress _ethOracleaddress _treasuryuint256 _minimumTCAP
Fallback and receive
receive(
Errors

This contract contains no error objects.