Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Add staticDelegate modifier for exec functions #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/modules/Exec.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down