Skip to content

Latest commit

 

History

History
337 lines (268 loc) · 9.1 KB

BorrowerOperationsScript.md

File metadata and controls

337 lines (268 loc) · 9.1 KB

BorrowerOperationsScript.sol

View Source: contracts/Proxy/BorrowerOperationsScript.sol

↗ Extends: CheckContract ↘ Derived Contracts: BorrowerWrappersScript

BorrowerOperationsScript

Contract Members

Constants & Variables

contract IBorrowerOperations internal borrowerOperations;

Functions


constructor

function (IBorrowerOperations _borrowerOperations) public nonpayable

Arguments

Name Type Description
_borrowerOperations IBorrowerOperations
Source Code
constructor(IBorrowerOperations _borrowerOperations) public {
        checkContract(address(_borrowerOperations));
        borrowerOperations = _borrowerOperations;
    }

openTrove

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);
    }

addColl

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);
    }

withdrawColl

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);
    }

withdrawZUSD

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);
    }

repayZUSD

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);
    }

closeTrove

function closeTrove() external nonpayable
Source Code
function closeTrove() external {
        borrowerOperations.closeTrove();
    }

adjustTrove

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);
    }

claimCollateral

function claimCollateral() external nonpayable
Source Code
function claimCollateral() external {
        borrowerOperations.claimCollateral();
    }

Contracts