deactivateMinter

deactivateMinter(minter)deactivateMinter(minter)

  • Callable only by active minterminter

  • Demonstrates that minterminter has been removed from the mintersminters list by TTG governance

  • Required to adjust totalActiveOwedMtotalActiveOwedM and totalInactiveOwedMtotalInactiveOwedM

    • Check that minterminter is not in mintersminters list

    • Imposes missedCollateralUpdatePenaltymintermissedCollateralUpdatePenalty_{minter} for every missed and not yet penalized update collateral interval. Updates penalizedUntilTimestampminterpenalizedUntilTimestamp_{minter} if a penalty was imposed.

    • Sets inactiveOwedM=activeOwedMminter+missedCollateralUpdatePenaltyminterinactiveOwedM= activeOwedM_{minter}+missedCollateralUpdatePenalty_{minter} , if any

    • Subtracts minterminterā€™s activeOwedMminter,nowactiveOwedM_{minter, now} from totalActiveOwedMtotalActiveOwedM and adds it to totalInactiveOwedMtotalInactiveOwedM totalActiveOwedMāˆ’=inactiveOwedMmintertotalActiveOwedM -= inactiveOwedM_{minter}totalInactiveOwedM+=inactiveOwedMmintertotalInactiveOwedM +=inactiveOwedM_{minter}

    • Resets minterminter's protocol state.

    • Sets isDeactivatedMinter=trueisDeactivatedMinter = true.

    • Calls updateIndexupdateIndex.

Last updated

Copyright 2024 M^0 Foundation