Skip to content

Commit 3a7eec8

Browse files
committed
Updated Interfaces and Errors
1 parent e302ce9 commit 3a7eec8

File tree

14 files changed

+78
-55
lines changed

14 files changed

+78
-55
lines changed

spot-vaults/contracts/_interfaces/ISpotPricingStrategy.sol

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-License-Identifier: BUSL-1.1
2+
pragma solidity ^0.8.24;
3+
4+
/// @notice Expect AR lower bound to be under the upper bound.
5+
error InvalidARBound();
6+
7+
/// @notice Expected pre and post swap AR delta to be non-increasing or non-decreasing.
8+
error UnexpectedARDelta();

spot-vaults/contracts/_interfaces/BillBrokerErrors.sol renamed to spot-vaults/contracts/_interfaces/errors/CommonErrors.sol

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: BUSL-1.1
1+
/// SPDX-License-Identifier: BUSL-1.1
22
pragma solidity ^0.8.24;
33

44
/// @notice Expected contract call to be triggered by authorized caller.
@@ -10,15 +10,6 @@ error UnexpectedDecimals();
1010
/// @notice Expected perc value to be at most (1 * 10**DECIMALS), i.e) 1.0 or 100%.
1111
error InvalidPerc();
1212

13-
/// @notice Expected Senior CDR bound to be more than 1.0 or 100%.
14-
error InvalidSeniorCDRBound();
15-
16-
/// @notice Expect AR lower bound to be under the upper bound.
17-
error InvalidARBound();
18-
19-
/// @notice Expected pre and post swap AR delta to be non-increasing or non-decreasing.
20-
error UnexpectedARDelta();
21-
2213
/// @notice Slippage higher than tolerance requested by user.
2314
error SlippageTooHigh();
2415

spot-vaults/contracts/_interfaces/external/IAlphaProVault.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
// solhint-disable-next-line compiler-version
3-
pragma solidity ^0.7.6;
2+
pragma solidity ^0.8.24;
43

54
import { IUniswapV3Pool } from "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
65

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)