Skip to content

Commit

Permalink
Merge pull request #331 from neonlabsorg/main
Browse files Browse the repository at this point in the history
Remove PRX_GAS_PRICE_SLIPPAGE
  • Loading branch information
himaster authored Oct 22, 2024
2 parents 30268c3 + 4ef0255 commit 3803922
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/operating/transaction-gas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ The Neon Proxy obtains the current prices of SOL and NEON tokens from the [pyth.

> This ensures that the Neon Operator receives enough NEON to cover the transaction cost in SOL.
The Neon Operator configures the value of `PRX_OPERATOR_FEE`, where 1.0 represents 100% of the potential fee extraction. The value of this parameter is currently set to **2.5**.
The Neon Operator configures the value of `PRX_OPERATOR_FEE`, where 1.0 represents 100% of the potential fee extraction. The value of this parameter is currently set to **1**.

Parameter `PRX_GAS_PRICE_SLIPPAGE` provides a buffer against transactions getting stuck in the mempool if there is volatility in prices of $SOL and $NEON. The value of this parameter is currently set to **0.25**.
<!-- Parameter `PRX_GAS_PRICE_SLIPPAGE` provides a buffer against transactions getting stuck in the mempool if there is volatility in prices of $SOL and $NEON. The value of this parameter is currently set to **0.25**.-->

For example:

Expand Down
9 changes: 4 additions & 5 deletions docs/single-source-snippets/_gas_price_calc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
| Neon | 1.5 | $ | |
| Ratio | | SOL:NEON | 83.3333 |
| Galan ratio | | Ratio \*10<sup>-9</sup> | 0.0000000833333 |
| Operator fee ratio | 2.5 | | |
| Proxy Gas Price Slippage | 0.25 | | |
| Adjustor | | 1+fee+slippage | 3.75 |
| **Gas price** | **0.0000003125** | NEON | Gas price formula |
| | **312.5** | Galan |
| Operator fee ratio | 1 | | |
| Adjustor | | 1+fee | 2 |
| **Gas price** | **0.0000001666666** | NEON | Gas price formula |
| |**166.6** | Galan | |
4 changes: 2 additions & 2 deletions docs/single-source-snippets/_price_formula.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
> Gas price = $SOL / $NEON(* 10<sup>-9</sup> NEON) * (1 + `PRX_OPERATOR_FEE` + `PRX_GAS_PRICE_SLIPPAGE`)
> Gas price = $SOL / $NEON(* 10<sup>-9</sup> NEON) * (1 + `PRX_OPERATOR_FEE`)
which can also be represented as:

> Gas price = SOL-to-NEON-rate in Galan * (1 + `PRX_OPERATOR_FEE` + `PRX_GAS_PRICE_SLIPPAGE`)
> Gas price = SOL-to-NEON-rate in Galan * (1 + `PRX_OPERATOR_FEE`)


Expand Down

0 comments on commit 3803922

Please sign in to comment.