-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd66ecb
commit 6792e2e
Showing
9 changed files
with
61 additions
and
128 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
spot-vaults/contracts/_interfaces/external/IBondController.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
interface IBondController { | ||
function collateralBalance() external view returns (uint256); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
interface IERC20 { | ||
function totalSupply() external view returns (uint256); | ||
function balanceOf(address account) external view returns (uint256); | ||
function transfer(address to, uint256 value) external returns (bool); | ||
function allowance(address owner, address spender) external view returns (uint256); | ||
function approve(address spender, uint256 value) external returns (bool); | ||
function transferFrom( | ||
address from, | ||
address to, | ||
uint256 value | ||
) external returns (bool); | ||
} |
7 changes: 7 additions & 0 deletions
7
spot-vaults/contracts/_interfaces/external/IPerpFeePolicy.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
interface IPerpFeePolicy { | ||
function decimals() external returns (uint8); | ||
function deviationRatio() external returns (uint256); | ||
function computePerpRolloverFeePerc(uint256 dr) external returns (int256); | ||
} |
13 changes: 13 additions & 0 deletions
13
spot-vaults/contracts/_interfaces/external/IPerpetualTranche.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
interface IPerpetualTranche { | ||
function underlying() external view returns (address); | ||
function getTVL() external returns (uint256); | ||
function totalSupply() external returns (uint256); | ||
function getReserveCount() external returns (uint256); | ||
function getReserveAt(uint256 index) external returns (address); | ||
function deviationRatio() external returns (uint256); | ||
function getReserveTokenValue(address t) external returns (uint256); | ||
function getReserveTokenBalance(address t) external returns (uint256); | ||
function feePolicy() external returns (address); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
interface ITranche { | ||
function bond() external view returns (address); | ||
function totalSupply() external view returns (uint256); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
pragma solidity ^0.7.6; | ||
|
||
interface IWAMPL { | ||
function wrapperToUnderlying(uint256 wamples) external view returns (uint256); | ||
} |
16 changes: 16 additions & 0 deletions
16
spot-vaults/contracts/_interfaces/types/CommonTypes_7x.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// solhint-disable-next-line compiler-version | ||
pragma solidity ^0.7.6; | ||
pragma abicoder v2; | ||
|
||
/// @notice A data structure to define a geometric Line with two points. | ||
struct Line { | ||
// @dev x-coordinate of the first point. | ||
uint256 x1; | ||
// @dev y-coordinate of the first point. | ||
uint256 y1; | ||
// @dev x-coordinate of the second point. | ||
uint256 x2; | ||
// @dev y-coordinate of the second point. | ||
uint256 y2; | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.