-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Gas Limit for Universal Receivers
Problem
A primary concern for individuals interacting with contracts utilizing the LSP1 universalReceiver(..) function is the potential for significant gas consumption on the contract being notified. In such scenarios, the transaction initiator (referenced by tx.origin) bears the high gas fees due to the logic executed in the notified contract.
Example
To illustrate, consider a scenario where a user transfers a token. The token contract, in turn, notifies the recipient via the universalReceiver(..) function. If this function contains complex logic, it could result in substantial gas consumption, forcing the sender to pay very high transaction fees.
How this problem is supposed to be solved ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels