Skip to main content

Gas Benchmarks

The gas usage of the Flow protocol is not deterministic and varies by user. Calls to third-party contracts, such as ERC-20 tokens, may use an arbitrary amount of gas. The values in the table below are rough estimations on Ethereum mainnet - you shouldn't take them for granted. The gas usage may vary depending on the network.

The following gas benchmarks are generated using a 6-decimal token.

FunctionGas Usage
adjustRatePerSecond44,171
create113,681
deposit32,975
depositViaBroker22,732
pause7,522
refund11,939
restart7,036
void (solvent stream)10,060
void (insolvent stream)37,460
withdraw (insolvent stream)57,688
withdraw (solvent stream)38,156
withdrawMax51,988