Skip to content

Commit

Permalink
Require tx.origin equals msg.sender
Browse files Browse the repository at this point in the history
  • Loading branch information
dantop114 committed Dec 8, 2021
1 parent 1daf6f1 commit 13b09e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/libraries/LibPoolEntryExit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ library LibPoolEntryExit {
}

function _exitPool(uint256 _amount, uint256[] memory _minAmountsOut) internal lockBPoolSwap {
require(tx.origin == msg.sender, "Not allowed");

IBPool bPool = PBStorage.load().bPool;
LibFees.chargeOutstandingAnnualFee();
uint256 poolTotal = PCStorage.load().totalSupply;
Expand Down

0 comments on commit 13b09e0

Please sign in to comment.