Skip to content

ZCFMint Object

An object used by the Zoe Contract Facet to issue digital assets. It's very similar to the Mint object, but it has a more limited set of methods.

ZCFMints are created and returned by Zoe Contract Facet's zcf.makeZCFMint() method.

aZCFMint.getIssuerRecord()

  • Returns: IssuerRecord

Returns an IssuerRecord containing the Issuer and Brand associated with the zcfMint.

aZCFMint.mintGains(gains, zcfSeat?)

All amounts in gains must be of this ZCFMint's Brand and the gains' Keywords should be defined by the contract instance in which zcfSeat is participating. If zcfSeat is not provided, a new seat is used. Mints the gains Amount of assets and adds them to zcfSeat's Allocation, then returns zcfSeat.

aZCFMint.burnLosses(losses, zcfSeat)

All amounts in losses must be of this ZCFMint's Brand and the losses' Keywords must be defined by the contract instance in which zcfSeat is participating. Subtracts losses from zcfSeat's Allocation, then burns that amount from the assets escrowed by Zoe for this contract instance.