mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
61 lines
1.5 KiB
Solidity
61 lines
1.5 KiB
Solidity
|
pragma solidity ^0.7.0;
|
||
|
|
||
|
interface BorrowerOperationsLike {
|
||
|
function openTrove(
|
||
|
uint256 _maxFee,
|
||
|
uint256 _LUSDAmount,
|
||
|
address _upperHint,
|
||
|
address _lowerHint
|
||
|
) external payable;
|
||
|
|
||
|
function addColl(address _upperHint, address _lowerHint) external payable;
|
||
|
|
||
|
function withdrawColl(
|
||
|
uint256 _amount,
|
||
|
address _upperHint,
|
||
|
address _lowerHint
|
||
|
) external;
|
||
|
|
||
|
function withdrawLUSD(
|
||
|
uint256 _maxFee,
|
||
|
uint256 _amount,
|
||
|
address _upperHint,
|
||
|
address _lowerHint
|
||
|
) external;
|
||
|
|
||
|
function repayLUSD(
|
||
|
uint256 _amount,
|
||
|
address _upperHint,
|
||
|
address _lowerHint
|
||
|
) external;
|
||
|
|
||
|
function closeTrove() external;
|
||
|
|
||
|
function adjustTrove(
|
||
|
uint256 _maxFee,
|
||
|
uint256 _collWithdrawal,
|
||
|
uint256 _debtChange,
|
||
|
bool isDebtIncrease,
|
||
|
address _upperHint,
|
||
|
address _lowerHint
|
||
|
) external payable;
|
||
|
|
||
|
function claimCollateral() external;
|
||
|
}
|
||
|
|
||
|
interface TroveManagerLike {
|
||
|
function getTroveColl(address _borrower) external view returns (uint);
|
||
|
function getTroveDebt(address _borrower) external view returns (uint);
|
||
|
}
|
||
|
|
||
|
interface StabilityPoolLike {
|
||
|
function provideToSP(uint _amount, address _frontEndTag) external;
|
||
|
function withdrawFromSP(uint _amount) external;
|
||
|
function withdrawETHGainToTrove(address _upperHint, address _lowerHint) external;
|
||
|
}
|
||
|
|
||
|
interface StakingLike {
|
||
|
function stake(uint _LQTYamount) external;
|
||
|
function unstake(uint _LQTYamount) external;
|
||
|
}
|