Skip to content

Commit

Permalink
adding fee stats table
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Sep 2, 2022
1 parent 90ec0de commit d619786
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions ante/fee-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Notes about Gas prices and gas used

NOTES:

- the gas used depends on the current state of the chain
- the gas records below are based on the empty state

| operation | gas used |
| :--------------------------------------------- | -------: |
| x/bank send | 31029 |
| x/group create | 68908 |
| x/oracle MsgAggregateExchangeRateVote (3 curr) | 66251 |
| x/oracle MsgAggregateExchangeRateVote (6 curr) | 69726 |
| default gas limit | 200000 |

### Target price (in USD cent) for x/bank send

| umee price (usd cent) | gas price in uumee | fee (usd cent) |
| --------------------: | -----------------: | -------------: |
| 2 | 0.2 | 0.0124 |
| 2 | 0.1 | 0.0062 |
| 2 | 0.02 | 0.00124 |
| 5 | 0.2 | 0.031 |
| 5 | 0.1 | 0.0155 |
| 5 | 0.02 | 0.0031 |

### Target price (in USD cent) for validator oracle txs (with 6 currencies) per day

There are roughly 10tx / minute and 14400 per day.
Validator has to do 2 tx (prevote and vote) every 5 blocks.
Validator will need to do `5760 = 2*14400/5` tx.

| umee price (usd cent) | gas price in uumee | fee (usd cent) |
| --------------------: | -----------------: | -------------: |
| 2 | 0.2 | 161.28 |
| 2 | 0.1 | 80.64 |
| 2 | 0.02 | 16.128 |
| 5 | 0.2 | 403.2 |
| 5 | 0.1 | 201.6 |
| 5 | 0.02 | 40.32 |

### Target price (in USD) for default gas limit

| umee price (usd cent) | gas price in uumee | fee (usd cent) |
| --------------------: | -----------------: | -------------: |
| 2 | 0.2 | 0.08 |
| 2 | 0.1 | 0.04 |
| 2 | 0.02 | 0.008 |
| 5 | 0.2 | 0.2 |
| 5 | 0.1 | 0.1 |
| 5 | 0.02 | 0.02 |

0 comments on commit d619786

Please sign in to comment.