Skip to main content

SablierV2ProxyPlugin

Git Source

Inherits: OnlyDelegateCall, ISablierV2ProxyPlugin

See the documentation in ISablierV2ProxyPlugin.

State Variables

archive

Retrieves the address of the archive contract.

ISablierV2Archive public immutable override archive;

Functions

constructor

constructor(ISablierV2Archive archive_);

getMethods

function getMethods() external pure returns (bytes4[] memory methods);

onStreamCanceled

Forwards the refunded assets to the proxy owner when the recipient cancel a stream whose sender is the proxy contract.

Requirements:

  • Must be delegate called.
  • The caller must be an address listed in the archive.
function onStreamCanceled(uint256 streamId, address, uint128 senderAmount, uint128) external onlyDelegateCall;