Skip to content

Latest commit

 

History

History
213 lines (174 loc) · 5.67 KB

StabilityPoolScript.md

File metadata and controls

213 lines (174 loc) · 5.67 KB

StabilityPoolScript.sol

View Source: contracts/Proxy/StabilityPoolScript.sol

↗ Extends: CheckContract

StabilityPoolScript

Contract Members

Constants & Variables

//public members
string public constant NAME;

//internal members
contract IStabilityPool internal stabilityPool;

Functions


constructor

function (IStabilityPool _stabilityPool) public nonpayable

Arguments

Name Type Description
_stabilityPool IStabilityPool
Source Code
constructor(IStabilityPool _stabilityPool) public {
        checkContract(address(_stabilityPool));
        stabilityPool = _stabilityPool;
    }

provideToSP

function provideToSP(uint256 _amount, address _frontEndTag) external nonpayable

Arguments

Name Type Description
_amount uint256
_frontEndTag address
Source Code
function provideToSP(uint _amount, address _frontEndTag) external {
        stabilityPool.provideToSP(_amount, _frontEndTag);
    }

withdrawFromSP

function withdrawFromSP(uint256 _amount) external nonpayable

Arguments

Name Type Description
_amount uint256
Source Code
function withdrawFromSP(uint _amount) external {
        stabilityPool.withdrawFromSP(_amount);
    }

withdrawETHGainToTrove

function withdrawETHGainToTrove(address _upperHint, address _lowerHint) external nonpayable

Arguments

Name Type Description
_upperHint address
_lowerHint address
Source Code
function withdrawETHGainToTrove(address _upperHint, address _lowerHint) external {
        stabilityPool.withdrawETHGainToTrove(_upperHint, _lowerHint);
    }

Contracts