BondV2

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x4fb3ca38 at 18709765
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 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

No balances found for "BondV2"

No transactions found for "BondV2"


Functions
Getter at block 21444734
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_=[])
 
bondPrice(view returns (uint256 price_)
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 _ownerview returns (struct BondV2Bond[] bondInfos_uint256[] rewardInfos_uint256[] dividendsInfos_)
bondInfo(uint256view returns (uint256 depositIdaddress principaluint256 amountuint256 payoutuint256 guardiansuint256 vestinguint256 lastBlockAtuint256 pricePaidaddress depositor)
lockingDiscounts(uint256view returns (uint256)
lockingPeriods(uint256view returns (uint256)
minimumPrincipalAmount(address _principaluint256 _discountview returns (uint256 amount_)
payoutFor(address _principaluint256 _amountuint256 _discountview returns (uint256)
pendingPayoutFor(uint256 _depositIdview returns (uint256 pendingPayout_)
percentVestedFor(uint256 _depositIdview returns (uint256 percentVested_)
supportsInterface(bytes4 interfaceIdview returns (bool)
totalPrincipals(addressview returns (uint256)
State-modifying
addPrincipals(address[] _principals
deposit(address _principaluint256 _amountuint256 _maxPriceuint256 _lockingPeriodreturns (uint256)
depositForBond(uint256 _amount
depositWithDividends(uint256 _amountuint256 _maxPriceuint256 _lockingPeriodreturns (uint256)
initialize(address _addressProvider
mint(uint256 _depositIdaddress _feeTokenuint256 _amount
onERC1155BatchReceived(addressaddressuint256[]uint256[]bytesreturns (bytes4)
onERC1155Received(addressaddressuint256uint256bytesreturns (bytes4)
pause(
recoverERC20(address _token
redeem(uint256 _depositIdreturns (uint256)
removePrincipals(address[] _principals
renounceOwnership(
setAddressProvider(address _addressProvider
setGuardianRewardFee(uint256 _guardianRewardFee
setLockingDiscount(uint256 _lockingPerioduint256 _discount
transferOwnership(address newOwner
unpause(
Events
BondCreated(uint256 depositIdaddress principaluint256 deposituint256 indexed payoutuint256 indexed expiresuint256 indexed priceInUSD
BondMinted(uint256 depositIdaddress indexed recipientuint256 payoutuint256 guardians
BondRedeemed(uint256 depositIdaddress indexed recipientuint256 payoutuint256 guardiansuint256 remaining
Initialized(uint8 version
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
Unpaused(address account
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
EXCEED_AMOUNT(
INSUFFICIENT_BALANCE(
INVALID_ADDRESS(
INVALID_AMOUNT(
INVALID_PERIOD(
INVALID_PRINCIPAL(
LIMIT_SLIPPAGE(
NOT_FULLY_VESTED(
NOT_OWNED_DEPOSIT(
TOO_SMALL(