contracting icon indicating copy to clipboard operation
contracting copied to clipboard

Feature Request: Extend the context of a contract

Open Endogen opened this issue 4 years ago • 0 comments

It would be really good to know which function called your own contract. Maybe you could add ctx.function which would return the contract that called you or None if it wasn't a contract.

This would allow a pure sell tax for example. Currently that can't be done since all we can know is who called us - for example the Rocketswap contract - but not from which function.

Endogen avatar Sep 23 '21 20:09 Endogen