Skip to content

[LSP1] Gas Limit for Universal Receivers #242

@YamenMerhi

Description

@YamenMerhi

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions