-
Notifications
You must be signed in to change notification settings - Fork 2
AssetEmit
anatol edited this page Jul 13, 2021
·
1 revision
uint8_t AssetEmit(AssetID aid , Amount amount , uint8_t bEmit);
Emits or burns the specified amount
of the specified asset type
-
aid
: asset id -
amount
: the amount to emit or burn -
bEmit
: flag, 0 - burn amount of the asset, 1 - emit
- 1 if successful
- 0 otherwise
-
Halt()
if asset specified byaid
was not created by this contract - fails in case of overflow (i.e. attempt to burn more than was emitted)
- the emitted/burned asset is NOT automatically added/subtracted to/from the current transaction. It's only locked/unlocked to the current contract
- to move it to the current transaction call FundsLock / FundsUnlock explicitly.