sablier-labs / sablier-v2-integration-template

Sablier V2 integration template
https://docs.sablier.com
GNU General Public License v3.0
14 stars 2 forks source link

Add explanatory comment about ERC-20 approvals #4

Closed PaulRBerg closed 4 months ago

PaulRBerg commented 10 months ago

Task

The createStream function should be annotated with a NatSpec comment that explains that the user has to ERC-20 approve the dummy contract.

Side note - the ERC-20 approval mechanism is bad. Our MNA asset design will solve this.

Context

We've recently received a question about this on Discord:

SCR-20240102-kxki SCR-20240102-kxln