Skip to content

Commit

Permalink
[fix] initialBalance to reset when flush
Browse files Browse the repository at this point in the history
  • Loading branch information
nsnull0 committed Feb 20, 2024
1 parent 0265c58 commit 3ae4243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/PasspostFinance-NFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ contract YCBPassportFinance is
if (erc20Address == address(sToken)) {
// To avoid owner flush customer stake token
contractBalance = initialBalance;
initialBalance = 0;
}

require(contractBalance > 0, "No tokens to flush");
Expand Down

0 comments on commit 3ae4243

Please sign in to comment.