Traders can set themselves as referrers
Whenever a user creates a trading account, he can set a referrer:
We can see that if the msg.sender
sets himself as the referrer, the code will revert. The thing is that a trader can still set himself as the referrer. Whenever a user creates his trading account, he is minted an NFT that is essentually his trading account. The user can do the following:
Have 2 wallets
Create a trading account with one of them and set his other account as the referrer
Transfer out the NFT to his other account which then calls the function below due to the _update()
override in AccountNFT.sol
:
Now, he has successfully set himself as the referrer.
Traders can set themselves as referrers
Manual Review
Do not allow traders to transfer out their NFT to their referrer
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.