From f78e50c03bb37973a49ebbfaf951b430211919a4 Mon Sep 17 00:00:00 2001 From: Cheng JIANG Date: Wed, 20 Sep 2023 10:07:25 +0800 Subject: [PATCH] feat: remove caller not eoa limit (#418) Signed-off-by: GopherJ --- contracts/protocol/libraries/logic/ValidationLogic.sol | 1 - contracts/protocol/pool/PoolParameters.sol | 1 - 2 files changed, 2 deletions(-) diff --git a/contracts/protocol/libraries/logic/ValidationLogic.sol b/contracts/protocol/libraries/logic/ValidationLogic.sol index 002bcba7..94c1c036 100644 --- a/contracts/protocol/libraries/logic/ValidationLogic.sol +++ b/contracts/protocol/libraries/logic/ValidationLogic.sol @@ -807,7 +807,6 @@ library ValidationLogic { DataTypes.ReserveData storage collateralReserve, DataTypes.ValidateAuctionParams memory params ) internal view { - require(tx.origin == msg.sender, Errors.CALLER_NOT_EOA); ValidateAuctionLocalVars memory vars; ( diff --git a/contracts/protocol/pool/PoolParameters.sol b/contracts/protocol/pool/PoolParameters.sol index a559a4e4..4a8d53cb 100644 --- a/contracts/protocol/pool/PoolParameters.sol +++ b/contracts/protocol/pool/PoolParameters.sol @@ -326,7 +326,6 @@ contract PoolParameters is function setAuctionValidityTime( address user ) external virtual override nonReentrant { - require(tx.origin == msg.sender, Errors.CALLER_NOT_EOA); DataTypes.PoolStorage storage ps = poolStorage(); require(user != address(0), Errors.ZERO_ADDRESS_NOT_VALID);