aavegotchi/ghst-staking

Delete lines in `withdrawFromPool` function

Closed this issue · 1 comments

These lines from the withdrawFromPool function should be deleted:

uint256 accountPoolTokens = s.accounts[sender].poolTokens;
require(accountPoolTokens >= _amount, "Can't withdraw more poolTokens than in account");
s.accounts[sender].poolTokens -= _amount;

Yes I believe these can safely be removed. We'll remove and write a test to cover. Thanks.