Ozone Finance Token Rug Pull
What happened
Ozone Finance was a PancakeSwap-style yield farm on BNB Chain whose MasterChef, deployed on 3 April 2021 at 0x23E794D2…CE6879 by 0x4024d56D…79d769, pays out the OZONE token. The contract lets the owner set any pool's deposit fee as high as 100%. At 100%, a new deposit goes entirely to the fee address and the depositor is credited nothing, so there is nothing to withdraw.
The owner can also set the OZONE emission rate to any value, and the deployer still owns the contract. De.Fi's REKT database lists Ozone Finance as an exit scam, but the transactions behind that listing could not be opened.
How it happened
- The constructor fixes
feeAddressfrom its arguments; only the currentfeeAddresscan change it throughsetFeeAddress. addandsetareonlyOwnerand accept any deposit fee up to 100%:require(_depositFeeBP <= 10000, "set: invalid deposit fee basis points").setworks on existing pools at any time.- In
deposit, the fee is sent straight tofeeAddressand the user is credited only the rest:user.amount = user.amount.add(_amount).sub(depositFee). At 10000 basis points the credited amount is zero, so neitherwithdrawnoremergencyWithdrawreturns anything. LP tokens that were already staked stay withdrawable. updateEmissionRate(uint256 _ozonePerBlock)isonlyOwnerwith no upper bound. EachupdatePoolthen mints the new reward rate to the MasterChef plus 10% extra todevaddr, which can dilute OZONE holders at will.renounceOwnershipexists, but the owner read on-chain is still the deployer, so these settings remain available.
Protocol details
Evidence
- transaction Ozone Finance MasterChef creation transaction bscscan.com
- address Ozone Finance MasterChef verified source code bscscan.com
- analysis BscScan token page cited by De.Fi as proof bscscan.com
- analysis Sourcify exact match for 0x23E794D2fA4983C635EFd0C02b6ecb8E99CE6879 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.