MixinPurchase#purchase()
Consider checking if _referrer equals _recipient
#198
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
WatchPug
Vulnerability details
Based on the context, it might be needed to check if _referrer equals _recipient and only pay UDT grants when _referrer != _recipient.
https://github.com/code-423n4/2021-11-unlock/blob/ec41eada1dd116bcccc5603ce342257584bec783/smart-contracts/contracts/mixins/MixinPurchase.sol#L35-L43
The text was updated successfully, but these errors were encountered: