ODCinterfacesdataManagersfractionalizers
ISemiFungibleFraction
NonGenesisId
burnMintAndPartiallyUnwrap
Allows contract owner to burn, mint and partially unwrap assets depending on specific ids and amounts
Parameters
Name | Type | Description |
---|---|---|
fractionsToHandle | uint256 | The amount of fractions to burn for burnId and mint of mintId |
burnId | uint256 | The id from which fractionsToHandle will be burnt |
mintId | uint256 | The id of which fractionsToHandle will be minted (if 0 no id is minted) |
account | address | The address from which the fractions will be burnt, to which the minted fractions will be minted and unwrapped assets will be provided |
tokens | address[] | The array of token addresses to be unwrapped |
ids | uint256[] | The array of ids to be unwrapped |
values | uint256[] | The array of values to be unwrapped |
burnFromOwnerMintToAccount
Allows contract owner to burn amount from himself/herself and mint to an account Both burnId and mintId should be genesis ids
Parameters
Name | Type | Description |
---|---|---|
fractionsToHandle | uint256 | The amount of fractions to burn for burnId and mint of mintId |
burnId | uint256 | The id from which fractionsToHandle will be burnt |
mintId | uint256 | The id of which fractionsToHandle will be minted |
account | address | The address to which the minted fractions will be minted |
percentageBurnMintAndPartiallyUnwrap
Allows contract owner to burn, mint and partially unwrap assets depending on a percentage
Parameters
Name | Type | Description |
---|---|---|
fractionsToHandle | uint256 | The amount of fractions to burn for burnId and mint of mintId |
burnId | uint256 | The id from which fractionsToHandle will be burnt |
mintId | uint256 | The id of which fractionsToHandle will be minted (if 0 no id is minted) |
account | address | The address from which the fractions will be burnt, to which the minted fractions will be minted and unwrapped assets will be provided |
percentageToProvide | uint256 | The percentage of the wrapped assets to be provided to the account |
safeTransferFrom
SafeTransferFrom
Parameters
Name | Type | Description |
---|---|---|
from | address | Address to get the token from |
to | OmnichainAddress | Address to provide tokens to |
id | uint256 | The id of the token |
value | uint256 | The amount of the tokens to transfer |
data | bytes | Extra data needed |
refundAddress | address payable | Address to send native coin refund to |
mint
Mint value
tokens of id
to to
The caller must be allowed to mint
Parameters
Name | Type | Description |
---|---|---|
to | address | Address to mint tokens to |
id | uint256 | Token id to mint |
value | uint256 | Amount to mint |
data | bytes | Additional data with no specified format |