View Source: contracts/Proxy/StabilityPoolScript.sol
↗ Extends: CheckContract
StabilityPoolScript
Constants & Variables
//public members
string public constant NAME;
//internal members
contract IStabilityPool internal stabilityPool;
- constructor(IStabilityPool _stabilityPool)
- provideToSP(uint256 _amount, address _frontEndTag)
- withdrawFromSP(uint256 _amount)
- withdrawETHGainToTrove(address _upperHint, address _lowerHint)
function (IStabilityPool _stabilityPool) public nonpayable
Arguments
Name | Type | Description |
---|---|---|
_stabilityPool | IStabilityPool |
Source Code
constructor(IStabilityPool _stabilityPool) public {
checkContract(address(_stabilityPool));
stabilityPool = _stabilityPool;
}
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);
}
function withdrawFromSP(uint256 _amount) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
_amount | uint256 |
Source Code
function withdrawFromSP(uint _amount) external {
stabilityPool.withdrawFromSP(_amount);
}
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);
}
- ActivePool
- ActivePoolStorage
- BaseMath
- BorrowerOperations
- BorrowerOperationsScript
- BorrowerOperationsStorage
- BorrowerWrappersScript
- CheckContract
- CollSurplusPool
- CollSurplusPoolStorage
- console
- Context
- DefaultPool
- DefaultPoolStorage
- DocsCover
- DSAuth
- DSAuthEvents
- DSAuthority
- DSNote
- DSProxy
- DSProxyCache
- DSProxyFactory
- ERC20
- ETHTransferScript
- FeeDistributor
- FeeDistributorStorage
- GasPool
- HintHelpers
- HintHelpersStorage
- IActivePool
- IBalanceRedirectPresale
- IBorrowerOperations
- ICollSurplusPool
- IDefaultPool
- IERC20
- IERC2612
- IExternalPriceFeed
- IFeeDistributor
- IFeeSharingProxy
- ILiquityBase
- ILiquityBaseParams
- IMasset
- IMoCBaseOracle
- Initializable
- IPool
- IPriceFeed
- IRSKOracle
- ISortedTroves
- IStabilityPool
- ITroveManager
- IWrbtc
- IZUSDToken
- LiquityBase
- LiquityBaseParams
- LiquityMath
- LiquitySafeMath128
- MoCMedianizer
- MultiTroveGetter
- MultiTroveGetterStorage
- NueToken
- Ownable
- PriceFeed
- PriceFeedStorage
- ProxiableContract
- ProxiableContract2
- Proxy
- RskOracle
- SafeMath
- SortedTroves
- SortedTrovesStorage
- StabilityPool
- StabilityPoolScript
- StabilityPoolStorage
- Storage
- Storage2
- TokenScript
- TroveManager
- TroveManagerBase
- TroveManagerBase1MinuteBootstrap
- TroveManagerRedeemOps
- TroveManagerScript
- TroveManagerStorage
- UpgradableProxy
- ZUSDToken
- ZUSDTokenStorage