ETHVaultHandler
Verified contract
Active on
Ethereum with 303 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($1,035.97)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0.424004 | $2,443.29 |
$1,035.97 | |
Sock | ERC-20 | 85.677471B | -- | -- | |
Sango | ERC-20 | 1.157676B | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20759062 | a month ago | | | 0 | 0.000058334182 | |
| 20759051 | a month ago | | | 0.002 | 0.000069056912 | |
| 20759017 | a month ago | | | 0 | 0.000097728516 | |
| 19585518 | 6 months ago | | | 0 | 0.0016010185 | |
| 18283754 | a year ago | | | 0 | 0.00061837958 | |
| 17030095 | 2 years ago | | | 0 | 0.0012084924 | |
| 17012654 | 2 years ago | | | 0 | 0.0022847228 | |
| 16921253 | 2 years ago | | | 0.015 | 0.0025453910 | |
| 16921249 | 2 years ago | | | 0 | 0.0030528851 | |
| 16861018 | 2 years ago | | | 0 | 0.0012629263 |
ABI
ABI objects
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 _amount) view returns (uint256 fee)
getOraclePrice(address _oracle) view returns (uint256 price)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
getVault(uint256 _id) view returns (uint256, uint256, address, uint256)
getVaultRatio(uint256 _vaultId) view returns (uint256 currentRatio)
hasRole(bytes32 role, address account) view returns (bool)
liquidationReward(uint256 _vaultId) view returns (uint256 rewardCollateral)
requiredCollateral(uint256 _amount) view returns (uint256 collateral)
requiredLiquidationTCAP(uint256 _vaultId) view returns (uint256 amount)
supportsInterface(bytes4 _interfaceId) pure returns (bool)
userToVault(address) view returns (uint256)
vaults(uint256) view returns (uint256 Id, uint256 Collateral, uint256 Debt, address Owner)
State-modifying
Events addCollateral(uint256 _amount)
addCollateralETH() payable
burn(uint256 _amount) payable
createVault()
grantRole(bytes32 role, address account)
liquidateVault(uint256 _vaultId, uint256 _maxTCAP) payable
mint(uint256 _amount)
pause()
recoverERC20(address _tokenAddress, uint256 _tokenAmount)
removeCollateral(uint256 _amount)
removeCollateralETH(uint256 _amount)
renounceOwnership()
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setBurnFee(uint256 _burnFee)
setLiquidationPenalty(uint256 _liquidationPenalty)
setMinimumTCAP(uint256 _minimumTCAP)
setRatio(uint256 _ratio)
setTreasury(address _treasury)
transferOwnership(address newOwner)
unpause()
CollateralAdded(address indexed _owner, uint256 indexed _id, uint256 _amount)
CollateralRemoved(address indexed _owner, uint256 indexed _id, uint256 _amount)
NewBurnFee(address indexed _owner, uint256 _burnFee)
NewLiquidationPenalty(address indexed _owner, uint256 _liquidationPenalty)
NewMinimumTCAP(address indexed _owner, uint256 _minimumTCAP)
NewRatio(address indexed _owner, uint256 _ratio)
NewTreasury(address indexed _owner, address _tresury)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused(address account)
Recovered(address _token, uint256 _amount)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TokensBurned(address indexed _owner, uint256 indexed _id, uint256 _amount)
TokensMinted(address indexed _owner, uint256 indexed _id, uint256 _amount)
Unpaused(address account)
VaultCreated(address indexed _owner, uint256 indexed _id)
VaultLiquidated(uint256 indexed _vaultId, address indexed _liquidator, uint256 _liquidationCollateral, uint256 _reward)
constructor(address _orchestrator, uint256 _divisor, uint256 _ratio, uint256 _burnFee, uint256 _liquidationPenalty, address _tcapOracle, address _tcapAddress, address _collateralAddress, address _collateralOracle, address _ethOracle, address _treasury, uint256 _minimumTCAP)
receive()
This contract contains no error objects.