Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PRX_GAS_PRICE_SLIPPAGE #331

Merged
merged 7 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading