Skip to content

Commit

Permalink
Update Automation billing page (#1705)
Browse files Browse the repository at this point in the history
* adding billing

* add text

* add

* update billing page

* link fix

* Update src/content/chainlink-automation/overview/automation-economics.mdx

---------

Co-authored-by: Dwight Lyle <[email protected]>
  • Loading branch information
2 people authored and thedriftofwords committed Jan 5, 2024
1 parent 3338d4c commit 2ecd6e1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/content/chainlink-automation/overview/automation-economics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@ whatsnext: { "Automation Architecture": "/chainlink-automation/concepts/automati

Chainlink Automation only requires an execution fee for transactions on-chain. This fee includes the transaction cost, a node operator percentage fee (refer to the formula below), and a small fixed gas overhead accounting for gas between the network and the registry. The percentage fee compensates the Automation Network for monitoring and performing your upkeep. The Automation percentage fee varies by chain and is listed on our [Supported Networks](/chainlink-automation/overview/supported-networks) page.

![Automation Pricing Formula](/images/automation/automation-pricing.png)
**Formula for Registry v1.2**

Fee<sub>LINK</sub> = [tx.gasPrice<sub>Native WEI</sub> * (gasUsed + gasOverhead) * (1 + premium%)]/[LINK/Native<sub>Rate in WEI</sub>]

There is no registration fee or other fees for any off-chain computation.

**Example**: An upkeep transaction was [performed](https://polygonscan.com/tx/0x19309782e15952c90dcadcc02cbf34f331daaeee369d3e3acca43bade02af105) on _Polygon mainnet_. It used _110,051_ gas at a gas price of _182,723,799,380 wei_. The node operator percentage on Polygon was _70%_ at the time of this transaction, and this fee [varies by network](/chainlink-automation/overview/supported-networks). The LINK/MATIC exchange rate for this transaction was _7,308,290,731,273,610,000 wei_. The upkeep's LINK balance was reduced by a fee of _0.008077 LINK_.
### Fee Calculation Example

An upkeep transaction was [performed](https://polygonscan.com/tx/0x19309782e15952c90dcadcc02cbf34f331daaeee369d3e3acca43bade02af105) on _Polygon mainnet_. It used _110,051_ gas at a gas price of _182,723,799,380 wei_. The node operator percentage on Polygon was _70%_ at the time of this transaction, and this fee [varies by network](/chainlink-automation/overview/supported-networks). The LINK/MATIC exchange rate for this transaction was _7,308,290,731,273,610,000 wei_. The upkeep's LINK balance was reduced by a fee of _0.008077 LINK_. The preceding information and calculation can be found in the table below:

| Variable | Description | Value |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| tx.gasPrice<sub>Native WEI</sub> | Gas price of the transaction | 182, 723, 799,380 |
| gasUsed | Gas used for performUpkeep calculated in solidity | 110,051 |
| gasOverhead | Fixed gas amount used for transaction call from node to Registry | 80,000 |
| premium% | Current premium on Polygon which can be found on the [Supported Networks page](/chainlink-automation/overview/supported-networks) | 70% |
| LINK/Native<sub>Rate in WEI</sub> | Exchange rate fetched from Chainlink Oracle | 7,308,290,731,273,610,000 |

![Automation Pricing Example](/images/automation/automation-pricing-example.png)
0.008077 = [182,723,799,380 * (110,051 + 80,000) * (1 + 70%)]/[7,308,290,731,273,610,000]

## How funding works

Expand Down

0 comments on commit 2ecd6e1

Please sign in to comment.