BondV2
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
2
Slot
XX
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 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 1 additional slot
3 additional
variables
Balances ($0.00)
No balances found for "BondV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "BondV2"
ABI
ABI objects
Getter at block 21444734 bondPrice() view returns (uint256 price_)
MULTIPLIER() view returns (uint256)
10000
UNIT() view returns (uint256)
1000000000000000000
addressProvider() view returns (address)
0x0000000000000000000000000000000000000000
allLockingPeriodsDiscounts() view returns (uint256[] lockingPeriods_, uint256[] lockingDiscounts_)
(lockingPeriods_=[], lockingDiscounts_=[])
allPrincipals() view returns (address[] principals_, uint256[] prices_)
(principals_=[], prices_=[])
depositId() view returns (uint256)
0
guardianRewardFee() view returns (uint256)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
paused() view returns (bool)
false
totalBondedValue() view returns (uint256)
0
totalDepositedValue() view returns (uint256)
0
totalRemainingPayout() view returns (uint256)
0
Read-only
allBondInfos(address _owner) view returns (struct BondV2Bond[] bondInfos_, uint256[] rewardInfos_, uint256[] dividendsInfos_)
bondInfo(uint256) view returns (uint256 depositId, address principal, uint256 amount, uint256 payout, uint256 guardians, uint256 vesting, uint256 lastBlockAt, uint256 pricePaid, address depositor)
lockingDiscounts(uint256) view returns (uint256)
lockingPeriods(uint256) view returns (uint256)
minimumPrincipalAmount(address _principal, uint256 _discount) view returns (uint256 amount_)
payoutFor(address _principal, uint256 _amount, uint256 _discount) view returns (uint256)
pendingPayoutFor(uint256 _depositId) view returns (uint256 pendingPayout_)
percentVestedFor(uint256 _depositId) view returns (uint256 percentVested_)
supportsInterface(bytes4 interfaceId) view returns (bool)
totalPrincipals(address) view returns (uint256)
State-modifying
Events addPrincipals(address[] _principals)
deposit(address _principal, uint256 _amount, uint256 _maxPrice, uint256 _lockingPeriod) returns (uint256)
depositForBond(uint256 _amount)
depositWithDividends(uint256 _amount, uint256 _maxPrice, uint256 _lockingPeriod) returns (uint256)
initialize(address _addressProvider)
mint(uint256 _depositId, address _feeToken, uint256 _amount)
onERC1155BatchReceived(address, address, uint256[], uint256[], bytes) returns (bytes4)
onERC1155Received(address, address, uint256, uint256, bytes) returns (bytes4)
pause()
recoverERC20(address _token)
redeem(uint256 _depositId) returns (uint256)
removePrincipals(address[] _principals)
renounceOwnership()
setAddressProvider(address _addressProvider)
setGuardianRewardFee(uint256 _guardianRewardFee)
setLockingDiscount(uint256 _lockingPeriod, uint256 _discount)
transferOwnership(address newOwner)
unpause()
BondCreated(uint256 depositId, address principal, uint256 deposit, uint256 indexed payout, uint256 indexed expires, uint256 indexed priceInUSD)
BondMinted(uint256 depositId, address indexed recipient, uint256 payout, uint256 guardians)
BondRedeemed(uint256 depositId, address indexed recipient, uint256 payout, uint256 guardians, uint256 remaining)
Initialized(uint8 version)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused(address account)
Unpaused(address account)
constructor()
This contract contains no fallback and receive objects.
EXCEED_AMOUNT()
INSUFFICIENT_BALANCE()
INVALID_ADDRESS()
INVALID_AMOUNT()
INVALID_PERIOD()
INVALID_PRINCIPAL()
LIMIT_SLIPPAGE()
NOT_FULLY_VESTED()
NOT_OWNED_DEPOSIT()
TOO_SMALL()