Skip to main content

Flow Fees Contract

FlowFees

The FlowFees contract is where all the collected flow fees are gathered.

Source: FlowFees.cdc

NetworkContract Address
Emulator0xe5a8b7f23e8b548f
Cadence Testing Framework0x0000000000000004
Testnet0x912d5440f7e3769e
Mainnet0xf919ee77447b7497

Events

Important events for FlowFees are:


_11
// Event that is emitted when tokens are deposited to the fee vault
_11
access(all) event TokensDeposited(amount: UFix64)
_11
_11
// Event that is emitted when tokens are withdrawn from the fee vault
_11
access(all) event TokensWithdrawn(amount: UFix64)
_11
_11
// Event that is emitted when fees are deducted
_11
access(all) event FeesDeducted(amount: UFix64, inclusionEffort: UFix64, executionEffort: UFix64)
_11
_11
// Event that is emitted when fee parameters change
_11
access(all) event FeeParametersChanged(surgeFactor: UFix64, inclusionEffortCost: UFix64, executionEffortCost: UFix64)

FlowStorageFees

The FlowStorageFees contract defines the parameters and utility methods for storage fees.

Source: FlowStorageFees.cdc

NetworkContract Address
Emulator0xf8d6e0586b0a20c7
Cadence Testing Framework0x0000000000000001
Testnet0x8c5303eaa26202d6
Mainnet0xe467b9dd11fa00df

Events

Important events for FlowStorageFees are:


_10
// Emitted when the amount of storage capacity an account has per reserved Flow token changes
_10
access(all) event StorageMegaBytesPerReservedFLOWChanged(_ storageMegaBytesPerReservedFLOW: UFix64)
_10
_10
// Emitted when the minimum amount of Flow tokens that an account needs to have reserved for storage capacity changes.
_10
access(all) event MinimumStorageReservationChanged(_ minimumStorageReservation: UFix64)