From 081a06ffbfe786937a0736a77a02d92aca1d22ff Mon Sep 17 00:00:00 2001 From: Troy Date: Thu, 29 Jun 2023 14:29:11 -0600 Subject: [PATCH] rename id variable --- markets/perps-market/contracts/modules/AsyncOrderModule.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markets/perps-market/contracts/modules/AsyncOrderModule.sol b/markets/perps-market/contracts/modules/AsyncOrderModule.sol index ab386fb1ef..488c31e6fe 100644 --- a/markets/perps-market/contracts/modules/AsyncOrderModule.sol +++ b/markets/perps-market/contracts/modules/AsyncOrderModule.sol @@ -97,11 +97,11 @@ contract AsyncOrderModule is IAsyncOrderModule { } function settlePythOrder(bytes calldata result, bytes calldata extraData) external payable { - (uint128 marketId, uint128 asyncOrderId) = abi.decode(extraData, (uint128, uint128)); + (uint128 marketId, uint128 accountId) = abi.decode(extraData, (uint128, uint128)); ( AsyncOrder.Data storage order, SettlementStrategy.Data storage settlementStrategy - ) = _performOrderValidityChecks(marketId, asyncOrderId); + ) = _performOrderValidityChecks(marketId, accountId); bytes32[] memory priceIds = new bytes32[](1); priceIds[0] = settlementStrategy.feedId;