ERC1155Vault

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x6cdfe352 at 19469546
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 3 additional slots
-
variable spans 1 additional slot

No balances found for "ERC1155Vault"

No transactions found for "ERC1155Vault"


Functions
Getter at block 21391997
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
calculateAdditionalInterest(view returns (uint256)
0
settings(view returns (struct RateLibRate debtInterestAprstruct RateLibRate organizationFeeRateuint256 borrowAmountCapuint256 minBorrowAmount)
(debtInterestApr=(0, 0), organizationFeeRate=(0, 0), borrowAmountCap=0, minBorrowAmount=0)
stablecoin(view returns (address)
0x0000000000000000000000000000000000000000
tokenContract(view returns (address)
0x0000000000000000000000000000000000000000
tokenIndex(view returns (uint256)
0
totalDebtAmount(view returns (uint256)
0
totalFeeCollected(view returns (uint256)
0
totalUsers(view returns (address[])
[]
totalUsersLength(view returns (uint256)
0
valueProvider(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
getCreditLimit(address _ownerview returns (uint256)
getDebtInterest(address _ownerview returns (uint256)
getLiquidationLimit(address _ownerview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isLiquidatable(address _ownerview returns (bool)
onERC1155BatchReceived(address operatoraddress fromuint256[] idsuint256[] valuesbytes datapure returns (bytes4)
onERC1155Received(address operatoraddress fromuint256 iduint256 valuebytes datapure returns (bytes4)
positions(addressview returns (uint256 collateraluint256 debtPrincipaluint256 debtPortion)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
accrue(
addCollateral(uint256 _colAmount
borrow(uint256 _amount
collect(
doActions(uint8[] _actionsbytes[] _data
grantRole(bytes32 roleaddress account
initialize(address _stablecoinaddress _tokenContractuint256 _tokenIndexaddress _valueProviderstruct AbstractAssetVaultVaultSettings _settings
liquidate(address _owneraddress _recipient
removeCollateral(uint256 _colAmount
renounceRole(bytes32 roleaddress account
repay(uint256 _amount
rescueToken(address _tokenuint256 _amount
revokeRole(bytes32 roleaddress account
setSettings(struct AbstractAssetVaultVaultSettings _settings
setValueProvider(address _valueProvider
Events
Accrual(uint256 additionalInterest
Borrowed(address indexed owneruint256 amount
CollateralAdded(address indexed owneruint256 colAmount
CollateralRemoved(address indexed owneruint256 colAmount
FeeCollected(uint256 collectedAmount
Initialized(uint8 version
Liquidated(address indexed liquidatoraddress indexed owneruint256 colAmount
Repaid(address indexed owneruint256 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
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
DebtCapReached(
InsufficientCollateral(
InvalidAmount(uint256 amount
InvalidLength(
InvalidPosition(address owner
InvalidRate(
MinBorrowAmount(
NoDebt(
UnknownAction(uint8 action