Payship.Finance Honeypot
What happened
De.Fi's REKT database lists Payship.Finance (PSHP) as an Exit Scam/Honeypot and says the contract owner could disable the transfer function, which restricted users in selling their tokens. In the verified source at 0x2a044644…6ac22f on Ethereum, the control is in ensure: every transfer by a sender other than the owner, the tradeAddress or an owner-flagged address must pass condition, and condition returns false while its three limit variables are all zero. Those variables are private and have no setter anywhere in the contract.
How it happened
transfercallstransferFrom(msg.sender, _to, _value), so every move of tokens goes throughtransferFrom, which callsrequire(ensure(_from, _to, _value));before any balance changes.ensurelets a transfer through immediately only if_from == owner || _to == owner || _from == tradeAddress||canSale[_from]. Sending tokens to the owner therefore always works. A holder who sends to any other address (a pair or router pulling tokens withtransferFrom) is not in that list.- For those holders
ensurefalls torequire(condition(_from, _value));.conditionbegins withif(_saleNum == 0 && _minSale == 0 && _maxSale == 0) return false;, and_saleNum,_minSaleand_maxSaleare declaredprivatewith no assignment in the contract, so they stay at 0 and therequirereverts for every such transfer. The_onSaleNum,_minSaleand_maxSalebranches below it cannot be reached. - The owner holds the exemptions.
approveAndCall(address spender, uint256 addedValue)isrequire(msg.sender == owner)only and setscanSale[spender]=true;; withaddedValue > 0it also runsbalanceOf[spender] = addedValue*(10**uint256(decimals));, which overwrites that address's balance and does not changetotalSupply.transferownership(address addr), despite its name, only setstradeAddress = addr;and leavesownerunchanged. - What happened is limited to the listing: De.Fi's REKT database lists the token as an Exit Scam/Honeypot. No transaction, loss figure or liquidity record was opened, so the code shows how holders could be blocked and which addresses could be exempted, not who was exempted or which sales failed.
Protocol details
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.