AccountV1
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
8
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "AccountV1"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "AccountV1"
ABI
ABI objects
Getter at block 22157673 getCollateralValue() view returns (uint256 collateralValue) getFreeMargin() view returns (uint256 freeMargin) getLiquidationValue() view returns (uint256 liquidationValue)
ACCOUNT_VERSION() view returns (uint256)
1
ASSET_LIMIT() view returns (uint256)
15
FACTORY() view returns (address)
0xda14fdd72345c4d2511357214c5b89a919768e59
creditor() view returns (address)
0x0000000000000000000000000000000000000000
generateAssetData() view returns (address[] assetAddresses, uint256[] assetIds, uint256[] assetAmounts)
(assetAddresses=[], assetIds=[], assetAmounts=[])
getUsedMargin() view returns (uint256 usedMargin)
0
inAuction() view returns (bool)
false
isAccountLiquidatable() view returns (bool success)
false
isAccountUnhealthy() view returns (bool isUnhealthy)
false
lastActionTimestamp() view returns (uint32)
0
liquidator() view returns (address)
0x0000000000000000000000000000000000000000
minimumMargin() view returns (uint96)
0
numeraire() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0x0f518becfc14125f23b8422849f6393d59627ddb
registry() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
approvedCreditor(address) view returns (address)
erc1155Balances(address, uint256) view returns (uint256)
erc20Balances(address) view returns (uint256)
getAccountValue(address numeraire_) view returns (uint256 accountValue)
isAssetManager(address, address) view returns (bool)
onERC1155Received(address, address, uint256, uint256, bytes) pure returns (bytes4)
onERC721Received(address, address, uint256, bytes) pure returns (bytes4)
State-modifying
Events auctionBid(address[] assetAddresses, uint256[] assetIds, uint256[] assetAmounts, address bidder) returns (uint256[] assetAmounts_)
auctionBoughtIn(address recipient)
closeMarginAccount()
deposit(address[] assetAddresses, uint256[] assetIds, uint256[] assetAmounts)
endAuction()
flashAction(address actionTarget, bytes actionData)
flashActionByCreditor(bytes callbackData, address actionTarget, bytes actionData) returns (uint256 accountVersion)
increaseOpenPosition(uint256 openPosition) returns (uint256 accountVersion)
initialize(address owner_, address registry_, address creditor_)
openMarginAccount(address newCreditor)
setApprovedCreditor(address creditor_)
setAssetManager(address assetManager, bool value)
setNumeraire(address numeraire_)
skim(address token, uint256 id, uint256 type_)
startLiquidation(address initiator) returns (address[] assetAddresses, uint256[] assetIds, uint256[] assetAmounts, address creditor_, uint96 minimumMargin_, uint256 openPosition, struct AssetValueAndRiskFactors[] assetAndRiskValues)
transferOwnership(address newOwner)
upgradeAccount(address newImplementation, address newRegistry, uint256 newVersion, bytes data)
upgradeHook(address oldImplementation, address oldRegistry, uint256 oldVersion, bytes data)
withdraw(address[] assetAddresses, uint256[] assetIds, uint256[] assetAmounts)
AssetManagerSet(address indexed owner, address indexed assetManager, bool value)
MarginAccountChanged(address indexed creditor, address indexed liquidator)
NumeraireSet(address indexed numeraire)
constructor(address factory)
fallback()
AccountInAuction()
AccountNotLiquidatable()
AccountUnhealthy()
AlreadyInitialized()
CoolDownPeriodNotPassed()
CreditorAlreadySet()
CreditorNotSet()
InvalidAccountVersion()
InvalidERC20Id()
InvalidERC721Amount()
InvalidRegistry()
NoFallback()
NoReentry()
NumeraireNotFound()
OnlyCreditor()
OnlyFactory()
OnlyLiquidator()
OnlyOwner()
TooManyAssets()
UnknownAsset()
UnknownAssetType()