SEEDCHAIN is experimental software and these docs may get out of date quickly. Please join the Discord server for up to date information and support.

mintMax()

mintMax(uint256 projectType)

Payable

Proposal - Not yet implemented.

Mint the maximum number of tokens for the value sent, refunding the remainder.

This method can mint between 0 and ∞ tokens depending on the value sent, and will not fail if insufficient value is sent for a single token.

Arguments:

  • projectType (uint256): Project ID mint

Example

Mint as many trees for 1 ETH (or 1e18 Wei) as possible.

seedchain.mintMax{value: 1e18}(
    100, // The project ID for trees
);