updateFlowByOperator
Updates an existing stream from a sender to a receiver using ACL permissions.
//load the token you'd like to use like this
//note that tokens may be loaded by symbol or by address
const daix = await sf.loadSuperToken("DAIx");
let flowOp = daix.updateFlowByOperator({
sender: string,
receiver: string,
flowRate: string,
userData?: string
});
await flowOp.exec( <<ethers signer>> );Parameters
Parameter
Type
Description
sender
string
Address of sender
receiver
string
Address of receiver
flowRate
string
New desired wei/second flow rate that sender wants to start streaming at to the receiver
Example Usage
Additional Considerations
If
updateFlowByOperatoris called with aflowRatethat is the same as the current flow rate, it will not revert.
Last updated
Was this helpful?

