Skip to content

Commit 21ed063

Browse files
committed
updated external interfaces
1 parent 1fa271d commit 21ed063

File tree

7 files changed

+45
-2
lines changed

7 files changed

+45
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// solhint-disable-next-line compiler-version
3+
interface IBondController {
4+
function collateralBalance() external view returns (uint256);
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// solhint-disable-next-line compiler-version
3+
interface IERC20 {
4+
function totalSupply() external view returns (uint256);
5+
function balanceOf(address account) external view returns (uint256);
6+
function transfer(address to, uint256 value) external returns (bool);
7+
function allowance(address owner, address spender) external view returns (uint256);
8+
function approve(address spender, uint256 value) external returns (bool);
9+
function transferFrom(
10+
address from,
11+
address to,
12+
uint256 value
13+
) external returns (bool);
14+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// solhint-disable-next-line compiler-version
3+
interface IPerpFeePolicy {
4+
function decimals() external returns (uint8);
5+
function deviationRatio() external returns (uint256);
6+
function computePerpRolloverFeePerc(uint256 dr) external returns (int256);
7+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// solhint-disable-next-line compiler-version
3+
interface IPerpetualTranche {
4+
function underlying() external view returns (address);
5+
function getTVL() external returns (uint256);
6+
function totalSupply() external returns (uint256);
7+
function getReserveCount() external returns (uint256);
8+
function getReserveAt(uint256 index) external returns (address);
9+
function deviationRatio() external returns (uint256);
10+
function getReserveTokenValue(address t) external returns (uint256);
11+
function getReserveTokenBalance(address t) external returns (uint256);
12+
function feePolicy() external returns (address);
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// solhint-disable-next-line compiler-version
3+
interface ITranche {
4+
function bond() external view returns (address);
5+
function totalSupply() external view returns (uint256);
6+
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22
// solhint-disable-next-line compiler-version
3-
pragma solidity ^0.7.6;
4-
53
interface IWAMPL {
64
function wrapperToUnderlying(uint256 wamples) external view returns (uint256);
75
}

0 commit comments

Comments
 (0)