2 txs
12 calls
constructor
No constructor.
functions
AUTOMATION_ROLE
viewfunction AUTOMATION_ROLE() view returns (bytes32)
bondContract
viewfunction bondContract(address) view returns (bool)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
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)
OPERATIONS_ROLE
viewfunction OPERATIONS_ROLE() view returns (bytes32)
owner
viewfunction owner() view returns (address)
payoutAddress
viewfunction payoutAddress() view returns (address)
payoutToken
viewfunction payoutToken() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
valueOfToken
viewfunction valueOfToken(address _principalTokenAddress, uint256 _amount) view returns (uint256 value_)
deposit_FeeInPayout
nonpayablefunction deposit_FeeInPayout(address _principalTokenAddress, uint256 _amountPrincipalToken, uint256 _amountPayoutToken, uint256 _feePayoutToken, address _feeReceiver)
deposit
nonpayablefunction deposit(address _principalTokenAddress, uint256 _amountPrincipalToken, uint256 _amountPayoutToken)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(address _payoutToken, address _initialOwner, address _payoutAddress, address[] _bondOperators)
renounceOwnership
nonpayablefunction renounceOwnership()
renounceRole
nonpayablefunction renounceRole(bytes32 role, address account)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
setPayoutAddress
nonpayablefunction setPayoutAddress(address _payoutAddress)
toggleBondContract
nonpayablefunction toggleBondContract(address _bondContract, bool _isActive)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
transferPayoutToken
nonpayablefunction transferPayoutToken(uint256 _amount)
withdraw
nonpayablefunction withdraw(address _token, address _destination, uint256 _amount)
events
BondContractToggled
event BondContractToggled(address indexed bondContract, bool enabled)
Deposit
event Deposit(address indexed bondContract, uint256 amountPrincipalToken, uint256 amountPayoutToken)
Initialized
event Initialized(uint8 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PayoutFee
event PayoutFee(address indexed bondContract, address feeReceiver, uint256 amountPayoutToken)
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)
SetPayoutAddress
event SetPayoutAddress(address payoutAddress)
Withdraw
event Withdraw(address indexed token, address indexed destination, uint256 amount)
errors
BondStateNotChanged
error BondStateNotChanged()
FeeCannotBeSentToZeroAddress
error FeeCannotBeSentToZeroAddress()
NotBondContract
error NotBondContract()
PayoutTokenAddressMismatch
error PayoutTokenAddressMismatch()
TreasuryAddressMismatch
error TreasuryAddressMismatch()
ZeroAddress
error ZeroAddress()
creation bytecode
0x3d602d80600a3d3981f3363d3d373d3d3d363d730311584b225113a77d0c35fc976965dd5687aa205af43d82803e903d91602b57fd5bf3