Skip to content

SafetyPool

senamakel edited this page Nov 25, 2024 · 5 revisions

Solidity API

SafetyPool

Used to pay off any bad debt that may occur in the protocol and also accure rewards

https://docs.maha.xyz/mechanics/safety-pool

MANAGER_ROLE

bytes32 MANAGER_ROLE

initialize

function initialize(address _stablecoin, address _governance, address _rewardToken1, address _rewardToken2, uint256 _rewardsDuration, address _stakingBoost) external

coverBadDebt

function coverBadDebt(uint256 amount) external

setStakingBoost

function setStakingBoost(address _stakingBoost) external

_calculateBoostedBalance

function _calculateBoostedBalance(address account) internal view returns (uint256 boostedBalance_, uint256 boostedTotalSupply_)

_Override the calculateBoostedBalance function to account for the withdrawal queue

Clone this wiki locally