From a89e61ef633598cd735c4ad0a6b6130664a4a3b7 Mon Sep 17 00:00:00 2001 From: kasperpawlowski Date: Wed, 8 Feb 2023 20:55:37 +0000 Subject: [PATCH] add staticDelegate modifier for getAverageLiquidity and getAverageLiquidityWithDelegate --- contracts/modules/Exec.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/modules/Exec.sol b/contracts/modules/Exec.sol index dbc3a40e..9b95c198 100644 --- a/contracts/modules/Exec.sol +++ b/contracts/modules/Exec.sol @@ -157,14 +157,14 @@ contract Exec is BaseLogic { /// @notice Retrieve the average liquidity for an account /// @param account User account (xor in subAccountId, if applicable) /// @return The average liquidity, in terms of the reference asset, and post risk-adjustment - function getAverageLiquidity(address account) external nonReentrant returns (uint) { + function getAverageLiquidity(address account) external staticDelegate nonReentrant returns (uint) { return getUpdatedAverageLiquidity(account); } /// @notice Retrieve the average liquidity for an account or a delegate account, if set /// @param account User account (xor in subAccountId, if applicable) /// @return The average liquidity, in terms of the reference asset, and post risk-adjustment - function getAverageLiquidityWithDelegate(address account) external nonReentrant returns (uint) { + function getAverageLiquidityWithDelegate(address account) external staticDelegate nonReentrant returns (uint) { return getUpdatedAverageLiquidityWithDelegate(account); }