Skip to content

Commit

Permalink
add initial configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleb-keny committed Jul 1, 2024
1 parent 5139eb8 commit 67e4d2e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions content/sips/sip-2057.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The L2 Gas cost calculation remains unchanged and is obtained by fetching the re
- `ETH/USD`: 2500$

#### Min Keeper Fee Calculation:
- `l1GasCost = getL1FeeUpperBound(3300) = 3500 GWEI`
- `l1GasCost = getL1FeeUpperBound(3500) = 3500 GWEI`
- `l2GasCost = 0.005 * 1.35e6 = 6750 GWEI`
- `costOfExecutionGrossGwei = 3500 GWEI + 6750 GWEI = 10250 GWEI`
- `costOfExecutionGrossUSD = (10250/1e9) ETH * 2500 USD/ETH ~= 0.025 sUSD`
Expand All @@ -87,11 +87,21 @@ The L2 Gas cost calculation remains unchanged and is obtained by fetching the re
### Configurable Values (Via SCCP)

- `minKeeperFeeUpperBound` being the upper bound on the minKeeperFee that can be updated, (set to 30 sUSD)
- `unsignedTxSize` size of the unsigned fully [RLP-encoded transaction](https://sepolia-optimism.etherscan.io/getRawTx?tx=0x6b614d3dd27c66b98f83055108509a8fcdaf9cc2924878345cb49ac3d91e338b) for settling an offchain delayed order
- `unsignedTxSize` size of the unsigned fully [RLP-encoded transaction](https://sepolia-optimism.etherscan.io/getRawTx?tx=0x6b614d3dd27c66b98f83055108509a8fcdaf9cc2924878345cb49ac3d91e338b) for settling an offchain delayed order.
- `gasUnitsL2` being the number of gas units required to settle an offchain delayed order
- `profitMarginUSD` being a profit margin in sUSD, applied on the cost of execution, (set to 1 sUSD)
- `profitMarginPercent` being a keeper profit margin in percentage, applied on the cost of execution, (set to 20%)


### Initial Configuration
| **Parameter** | **Configuration** |
|:----------------------:|:-----------------:|
| profitMarginUSD | 1 |
| profitMarginPercent | 30% |
| minKeeperFeeUpperBound | 30 |
| unsignedTxSize | 3,500 |
| gasUnitsL2 | 1,300,000 |

### References:
- [Optimism Gas Price Contract](https://vscode.blockscan.com/optimism-testnet/0xa919894851548179a0750865e7974da599c0fac7)

Expand Down

0 comments on commit 67e4d2e

Please sign in to comment.