-
Notifications
You must be signed in to change notification settings - Fork 8
PegStabilityModule
senamakel edited this page Nov 25, 2024
·
6 revisions
Used to mint ZAI with collateral at a pre-defined rate
https://docs.maha.xyz/mechanics/peg-mechanics/peg-stablility-module-psm
function initialize(address _zai, address _collateral, address _governance, uint256 _newRate, uint256 _supplyCap, uint256 _debtCap, uint256 _mintFeeBps, uint256 _redeemFeeBps, address _feeDestination) externalfunction updateRate(uint256 _newRate) externalfunction rate() public view returns (uint256)function _updateRate(uint256 rate_) internalUpdates the rate of ZAI/Collateral
| Name | Type | Description |
|---|---|---|
| rate_ | uint256 | the new rate of ZAI/Collateral |
function feesCollected() public pure returns (uint256)How much fees has been collected by the protocol
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |