Last updated
Last updated
Emitted when a new bond is created.
Emitted when the restriction of bond creation to allow-listed accounts is toggled on or off.
Emitted when the restriction of collateralToken and paymentToken to allow-listed tokens is toggled on or off.
There must be more collateralTokens than convertibleTokens.
Fails if the collateralToken takes a fee.
Maturity date is not valid.
The paymentToken and collateralToken must be different.
Decimals with more than 18 digits are not supported.
Bonds must be minted during initialization.
The role given to allowed tokens.
The role required to issue bonds.
Creates a new Bond. The calculated ratios are rounded down.
Returns whether or not the given address key is a bond created by this Bond factory.
If enabled, issuance is restricted to those with ISSUER_ROLE.
If enabled, tokens used as paymentToken and collateralToken are restricted to those with the ALLOWED_TOKEN role.
Sets the state of bond restriction to allow-listed accounts.
Sets the state of token restriction to the list of allowed tokens.
Address where the bond implementation contract is stored.
string
name
string
symbol
address indexed
owner
uint256
maturity
address indexed
paymentToken
address indexed
collateralToken
uint256
collateralTokenAmount
uint256
convertibleTokenAmount
uint256
bonds
bytes32 indexed
role
bytes32 indexed
previousAdminRole
bytes32 indexed
newAdminRole
bytes32 indexed
role
address indexed
account
address indexed
sender
bytes32 indexed
role
address indexed
account
address indexed
sender
string
symbol
Passed into the ERC20 token to define the symbol.
uint256
maturity
The timestamp at which the Bond will mature.
address
paymentToken
The ERC20 token address the Bond is redeemable for.
address
collateralToken
The ERC20 token address the Bond is backed by.
uint256
collateralTokenAmount
The amount of collateral tokens per bond.
uint256
convertibleTokenAmount
The amount of convertible tokens per bond.
uint256
bonds
The amount of Bonds given to the owner during the one-time mint during the `Bond`'s `initialize`.
address
account
address
account
address
account
address
account
This factory contract issues new bond contracts.