172 txs
189 calls
constructor
No constructor.
functions
allIssuedBillIds
viewfunction allIssuedBillIds() view returns (uint256[])
billInfo
viewfunction billInfo(uint256) view returns (uint256 payout, uint256 payoutClaimed, uint256 vesting, uint256 vestingTerm, uint256 vestingStartTimestamp, uint256 lastClaimTimestamp, uint256 truePricePaid)
billNft
viewfunction billNft() view returns (address)
billPrice
viewfunction billPrice() view returns (uint256 price_)
claimablePayout
viewfunction claimablePayout(uint256 _billId) view returns (uint256 claimablePayout_)
currentDebt
viewfunction currentDebt() view returns (uint256)
currentFee
viewfunction currentFee() view returns (uint256 currentFee_)
customTreasury
viewfunction customTreasury() view returns (address)
debtDecay
viewfunction debtDecay() view returns (uint256 decay_)
debtRatio
viewfunction debtRatio() view returns (uint256 debtRatio_)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
DISCOUNT_MANAGER_ROLE
viewfunction DISCOUNT_MANAGER_ROLE() view returns (bytes32)
feeInPayout
viewfunction feeInPayout() view returns (bool)
feeTiers
viewfunction feeTiers(uint256) view returns (uint256 tierCeilings, uint256 fees)
feeTo
viewfunction feeTo() view returns (address)
getBillIds
viewfunction getBillIds(address user) view returns (uint256[])
getBillIdsInRange
viewfunction getBillIdsInRange(address user, uint256 start, uint256 end) view returns (uint256[])
getBillInfo
viewfunction getBillInfo(uint256 billId) view returns (tuple)
getFeeTierLength
viewfunction getFeeTierLength() view returns (uint256 tierLength_)
getMaxTotalPayout
viewfunction getMaxTotalPayout() view returns (uint256)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember
viewfunction getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount
viewfunction getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
lastBCVUpdateTimestamp
viewfunction lastBCVUpdateTimestamp() view returns (uint256)
lastDecay
viewfunction lastDecay() view returns (uint256)
MAX_FEE
viewfunction MAX_FEE() view returns (uint256)
maxPayout
viewfunction maxPayout() view returns (uint256)
minBCVUpdateInterval
viewfunction minBCVUpdateInterval() view returns (uint256)
OPERATIONS_ROLE
viewfunction OPERATIONS_ROLE() view returns (bytes32)
owner
viewfunction owner() view returns (address)
paused
viewfunction paused() view returns (bool)
payoutFor
viewfunction payoutFor(uint256 _amount) view returns (uint256 _payout, uint256 _fee)
payoutToken
viewfunction payoutToken() view returns (address)
payoutTokenInitialSupply
viewfunction payoutTokenInitialSupply() view returns (uint256)
pendingPayout
viewfunction pendingPayout(uint256 _billId) view returns (uint256 pendingPayout_)
pendingVesting
viewfunction pendingVesting(uint256 _billId) view returns (uint256 pendingVesting_)
principalToken
viewfunction principalToken() view returns (address)
redeemerApproved
viewfunction redeemerApproved(address, address) view returns (bool)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
terms
viewfunction terms() view returns (uint256 controlVariable, uint256 vestingTerm, uint256 minimumPrice, uint256 maxPayout, uint256 maxDebt, uint256 maxTotalPayout, uint256 initialDebt)
totalDebt
viewfunction totalDebt() view returns (uint256)
totalPayoutGiven
viewfunction totalPayoutGiven() view returns (uint256)
totalPrincipalBilled
viewfunction totalPrincipalBilled() view returns (uint256)
trueBillPrice
viewfunction trueBillPrice() view returns (uint256 price_)
userBillIds
viewfunction userBillIds() view returns (uint256[])
VERSION
viewfunction VERSION() view returns (string)
vestedPayoutAtTime
viewfunction vestedPayoutAtTime(uint256 _billId, uint256 _timestamp) view returns (uint256 vestedPayout_)
vestingCurve
viewfunction vestingCurve() view returns (address)
vestingPayout
viewfunction vestingPayout(uint256 _billId) view returns (uint256 vestingPayout_)
vestingPeriod
viewfunction vestingPeriod(uint256 _billId) view returns (uint256 vestingStart_, uint256 vestingEnd_)
batchClaim
nonpayablefunction batchClaim(uint256[] _billIds) returns (uint256 payout)
batchRedeem
nonpayablefunction batchRedeem(uint256[] _billIds) returns (uint256 payout)
changeBCVUpdateInterval
nonpayablefunction changeBCVUpdateInterval(uint256 _newBCVUpdateInterval)
changeFeeTo
nonpayablefunction changeFeeTo(address _feeTo)
claim
nonpayablefunction claim(uint256 _billId) returns (uint256)
deposit
nonpayablefunction deposit(uint256 _amount, uint256 _maxPrice, address _depositor) returns (uint256)
grantDiscountManagerRole
nonpayablefunction grantDiscountManagerRole(address _discountManager)
grantOperationsRole
nonpayablefunction grantOperationsRole(address[] _bondOperations)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(address _customTreasury, tuple _billCreationDetails, tuple _billTerms, tuple _billAccounts, address[] _billOperators)
pause
nonpayablefunction pause()
redeem
nonpayablefunction redeem(uint256 _billId) returns (uint256)
refillPayoutToken
nonpayablefunction refillPayoutToken(uint256 _refillAmount)
renounceOwnership
nonpayablefunction renounceOwnership()
renounceRole
nonpayablefunction renounceRole(bytes32 role, address account)
revokeDiscountManagerRole
nonpayablefunction revokeDiscountManagerRole(address _discountManager)
revokeOperationsRole
nonpayablefunction revokeOperationsRole(address[] _bondOperations)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
setBCV
nonpayablefunction setBCV(uint256 _target)
setBondTerms
nonpayablefunction setBondTerms(uint8 _parameter, uint256 _input)
setClaimApproval
nonpayablefunction setClaimApproval(address approvedAccount, bool approved)
setFeeTiers
nonpayablefunction setFeeTiers(uint256[] fees, uint256[] tierCeilings)
setMaxTotalPayout
nonpayablefunction setMaxTotalPayout(uint256 _maxTotalPayout)
setMinPrice
nonpayablefunction setMinPrice(uint256 _target)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
transferStuckToken
nonpayablefunction transferStuckToken(address _token, uint256 _amount)
unpause
nonpayablefunction unpause()
events
BillClaimed
event BillClaimed(uint256 indexed billId, address indexed recipient, uint256 payout, uint256 remaining)
BillCreated
event BillCreated(uint256 deposit, uint256 payout, uint256 expires, uint256 indexed billId)
BillInitialized
event BillInitialized((uint256 controlVariable, uint256 vestingTerm, uint256 minimumPrice, uint256 maxPayout, uint256 maxDebt, uint256 maxTotalPayout, uint256 initialDebt) billTerms, uint256 lastDecay)
BillPriceChanged
event BillPriceChanged(uint256 internalPrice, uint256 debtRatio)
BillRefilled
event BillRefilled(address payoutToken, uint256 amountAdded)
ControlVariableAdjustment
event ControlVariableAdjustment(uint256 initialBCV, uint256 newBCV)
FeeToChanged
event FeeToChanged(address indexed newFeeTo)
Initialized
event Initialized(uint8 version)
MaxTotalPayoutChanged
event MaxTotalPayoutChanged(uint256 newMaxTotalPayout)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused
event Paused(address account)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SetFees
event SetFees(uint256[] fees, uint256[] tierCeilings)
TermsSet
event TermsSet(uint8 parameter, uint256 input)
Unpaused
event Unpaused(address account)
UpdateClaimApproval
event UpdateClaimApproval(address indexed owner, address indexed approvedAccount, bool approved)
errors
No errors.
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d7321c43d7578b38c1a16a7956c0ab28a98e504e8de5af43d82803e903d91602b57fd5bf3