Skip to content

Commit fdefa3b

Browse files
authored
Improve perp module tests (#172)
1 parent fc90605 commit fdefa3b

File tree

5 files changed

+1377
-458
lines changed

5 files changed

+1377
-458
lines changed

contracts/interfaces/external/perp-v2/IExchange.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ interface IExchange {
4747
int256 openNotional;
4848
}
4949

50+
// Note: Do *NOT* add `getFundingGrowthGlobalAndTwaps` to this interface. It may work with the
51+
// custom bytecode we generated to expose the method in our TS tests but it's no longer part of the
52+
// public interface of the deployed PerpV2 system contracts. (Removed in v0.15.0).
53+
5054
function getPool(address baseToken) external view returns (address);
5155
function getTick(address baseToken) external view returns (int24);
5256
function getSqrtMarkTwapX96(address baseToken, uint32 twapInterval) external view returns (uint160);

external/abi/perp/PerpV2Exchange.json

Lines changed: 43 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)