Balancer

The Balancer is a contract that can adjust loan limits to influence the supply of SWEEP and the price.

Loan limit adjustments

The balancer adjusts loan limits to change the supply of SWEEP. It adjusts loan limits up if SWEEP is above the target_price, indicating a shortage of SWEEP. It adjusts loan limits down if SWEEP is below the target price, indicating a surplus of SWEEP.

Loan Calls

All Stabilizers should respond to calls in the agreed call time. This will be less than seven days in the first version of Sweep protocol. Stabilizers will get calls if:

  • The equity ratio is below a minimum. This is a traditional margin call, and it triggers immediate action.

  • The borrowed amount is above the loan limit. This can happen if the loan limit is adjusted down. The system will expect repayment within the agreed call time.

Some Stabilizers will automatically invest and return money in response to loan limit adjustments.

function marginCalls(
    address[] memory targets,
    uint256[] memory percentages,
    uint256 usdx_to_peg
)

Last updated