Replies: 1 comment 11 replies
-
I like the idea of having the Airstream contract be the sender.
However, I do see how this would lower the burden of having to implement extra methods. Informational note: regarding the accounting flow, the proxy is also going to create special "hoops". Not that this is any different from how the other contracts work at the moment. I assume, at least at the app level, we'll ask the sender to first create a proxy. Through it they'll deploy an Airstream campaign with the factory. Then, the cancelation transfers become:
Begs a separate question for our design: do we rely on sender proxies for this at all? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Airstream contracts will inherit from
Adminable
, and there comes the question of who the stream sender should be when claiming airstreams?It can be either the Airstream contract itself or the administrator's address.
The massive benefit of setting the admin as the stream sender would be that we wouldn't have to implement
cancel
andcancelMultiple
in the Airstream contract. The typical cancellation flow would apply.The only con I can think of is that this might interfere the accounting logic since the nominal sender would be different from the real sender (the Airstreams contract). However, this should be a negligible issue - many airstreams will likely be non-cancelable, and in any case the sender and the funder are different entities in V2 Core:
https://github.com/sablier-labs/v2-core/blob/fcbc567aea6362c1f102eb19732badeb4899dec5/src/interfaces/ISablierV2LockupLinear.sol#L28-L38
Beta Was this translation helpful? Give feedback.
All reactions