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.

FunctionStream LiquidityGas Usage
adjustRatePerSecondN/A44,171
createN/A113,681
depositN/A32,975
depositViaBrokerN/A22,732
pauseN/A7,522
refundN/A11,939
restartN/A7,036
voidInsolvent37,460
voidSolvent10,060
withdrawInsolvent57,688
withdrawSolvent38,156
withdrawMaxN/A51,988