Trending topics
#
Bonk Eco continues to show strength amid $USELESS rally
#
Pump.fun to raise $1B token sale, traders speculating on airdrop
#
Boop.Fun leading the way with a new launchpad on Solana.
0x143ed8b7448cdbc43609217b3ec19708f1627777
Be cautious when getting in!!!!
Take a look at this code. It can urgently withdraw all BNB. Without this backdoor, it would definitely be playable. What does an unscrupulous developer want with this backdoor?
Solidity
function emergencyWithdrawAll() external onlyOwnerOrGuardian { uint256 bal = address(this).balance; if (bal == 0) revert InsufficientBnb(0, 1); totalReservedBnb = 0; // Force reserve to zero _sendBnb(msg.sender, bal); // Send all BNB in the contract emit EmergencyWithdraw(msg.sender, bal); }
Forced clearing: The regular withdrawBnb function can only withdraw "unreserved" funds, meaning it cannot touch the Bond funds that users have created but not yet claimed.
Ignoring claims: This emergencyWithdrawAll will directly set totalReservedBnb (i.e., the total amount of BNB waiting to be claimed by all users) to 0, and then transfer every penny in the contract to the administrator.
Top
Ranking
Favorites
