burnM

burnM(minter,maxAmount)burnM(minter,maxAmount)

  • Callable by anyone wishing to burn M on behalf of minterminter

  • Decreases owedMminterowedM_{minter} by amountamount. M is subtracted from the caller of this function

  • Calculates maxPrincipalAmountmaxPrincipalAmount to burn given current value of MinterGateway index

  • Calls burnM(minter,maxPrincipalAmount,maxAmount)burnM(minter,maxPrincipalAmount,maxAmount).

Last updated

Copyright 2024 M^0 Foundation