View Source: contracts/Proxy/BorrowerOperationsScript.sol
↗ Extends: CheckContract ↘ Derived Contracts: BorrowerWrappersScript
BorrowerOperationsScript
Constants & Variables
contract IBorrowerOperations internal borrowerOperations;
- constructor(IBorrowerOperations _borrowerOperations)
- openTrove(uint256 _maxFee, uint256 _ZUSDAmount, address _upperHint, address _lowerHint)
- addColl(address _upperHint, address _lowerHint)
- withdrawColl(uint256 _amount, address _upperHint, address _lowerHint)
- withdrawZUSD(uint256 _maxFee, uint256 _amount, address _upperHint, address _lowerHint)
- repayZUSD(uint256 _amount, address _upperHint, address _lowerHint)
- closeTrove()
- adjustTrove(uint256 _maxFee, uint256 _collWithdrawal, uint256 _debtChange, bool isDebtIncrease, address _upperHint, address _lowerHint)
- claimCollateral()
function (IBorrowerOperations _borrowerOperations) public nonpayable
Arguments
Name | Type | Description |
---|---|---|
_borrowerOperations | IBorrowerOperations |
Source Code
constructor(IBorrowerOperations _borrowerOperations) public {
checkContract(address(_borrowerOperations));
borrowerOperations = _borrowerOperations;
}
function openTrove(uint256 _maxFee, uint256 _ZUSDAmount, address _upperHint, address _lowerHint) external payable
Arguments
Name | Type | Description |
---|---|---|
_maxFee | uint256 | |
_ZUSDAmount | uint256 | |
_upperHint | address | |
_lowerHint | address |
Source Code
function openTrove(uint _maxFee, uint _ZUSDAmount, address _upperHint, address _lowerHint) external payable {
borrowerOperations.openTrove{ value: msg.value }(_maxFee, _ZUSDAmount, _upperHint, _lowerHint);
}
function addColl(address _upperHint, address _lowerHint) external payable
Arguments
Name | Type | Description |
---|---|---|
_upperHint | address | |
_lowerHint | address |
Source Code
function addColl(address _upperHint, address _lowerHint) external payable {
borrowerOperations.addColl{ value: msg.value }(_upperHint, _lowerHint);
}
function withdrawColl(uint256 _amount, address _upperHint, address _lowerHint) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
_amount | uint256 | |
_upperHint | address | |
_lowerHint | address |
Source Code
function withdrawColl(uint _amount, address _upperHint, address _lowerHint) external {
borrowerOperations.withdrawColl(_amount, _upperHint, _lowerHint);
}
function withdrawZUSD(uint256 _maxFee, uint256 _amount, address _upperHint, address _lowerHint) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
_maxFee | uint256 | |
_amount | uint256 | |
_upperHint | address | |
_lowerHint | address |
Source Code
function withdrawZUSD(uint _maxFee, uint _amount, address _upperHint, address _lowerHint) external {
borrowerOperations.withdrawZUSD(_maxFee, _amount, _upperHint, _lowerHint);
}
function repayZUSD(uint256 _amount, address _upperHint, address _lowerHint) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
_amount | uint256 | |
_upperHint | address | |
_lowerHint | address |
Source Code
function repayZUSD(uint _amount, address _upperHint, address _lowerHint) external {
borrowerOperations.repayZUSD(_amount, _upperHint, _lowerHint);
}
function closeTrove() external nonpayable
Source Code
function closeTrove() external {
borrowerOperations.closeTrove();
}
function adjustTrove(uint256 _maxFee, uint256 _collWithdrawal, uint256 _debtChange, bool isDebtIncrease, address _upperHint, address _lowerHint) external payable
Arguments
Name | Type | Description |
---|---|---|
_maxFee | uint256 | |
_collWithdrawal | uint256 | |
_debtChange | uint256 | |
isDebtIncrease | bool | |
_upperHint | address | |
_lowerHint | address |
Source Code
function adjustTrove(uint _maxFee, uint _collWithdrawal, uint _debtChange, bool isDebtIncrease, address _upperHint, address _lowerHint) external payable {
borrowerOperations.adjustTrove{ value: msg.value }(_maxFee, _collWithdrawal, _debtChange, isDebtIncrease, _upperHint, _lowerHint);
}
function claimCollateral() external nonpayable
Source Code
function claimCollateral() external {
borrowerOperations.claimCollateral();
}
- 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