Skip to content

Commit

Permalink
Reduce eth fee (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 authored Apr 7, 2024
1 parent d3b7bba commit 0677a26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/fee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eo pipefail
set -x
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 46 --chain-id 1 --broadcast --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 42161 --chain-id 1 --broadcast --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 1 --chain-id 46 --broadcast --slow
forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 1 --chain-id 46 --broadcast --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 42161 --chain-id 46 --broadcast --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 44 --chain-id 46 --broadcast --slow --legacy
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 46 --chain-id 42161 --broadcast --slow --legacy --skip-simulation
Expand All @@ -16,9 +16,9 @@ set -x
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 81457 --chain-id 42161 --broadcast --legacy --skip-simulation
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 42161 --chain-id 81457 --broadcast --legacy --with-gas-price 1060000

forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 11155111 --chain-id 43 --broadcast
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 11155111 --chain-id 43 --broadcast
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 421614 --chain-id 43 --broadcast
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 43 --chain-id 11155111 --broadcast
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 421614 --chain-id 11155111 --broadcast
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 43 --chain-id 421614 --broadcast --skip-simulation --legacy --slow
forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 11155111 --chain-id 421614 --broadcast --skip-simulation --legacy --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 11155111 --chain-id 421614 --broadcast --skip-simulation --legacy --slow
2 changes: 1 addition & 1 deletion script/fee/Fee.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ contract Fee is Common {

function run(uint256 chainId) public {
// require(dao == msg.sender, "!dao");
// setOracleFee(chainId);
setOracleFee(chainId);
setRelayerFee(chainId);
}

Expand Down
4 changes: 2 additions & 2 deletions script/input/46/fee.c.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ORACLE": {
"1": {
"fee": 3600000000000000000000
"fee": 1800000000000000000000
},
"44": {
"fee": 1000000000000000000
Expand All @@ -16,7 +16,7 @@
"RELAYER": {
"1": {
"dstPriceRatio": 7000000000000000,
"dstGasPriceInWei": 30000000000,
"dstGasPriceInWei": 25000000000,
"baseGas": 120000,
"gasPerByte": 16
},
Expand Down

0 comments on commit 0677a26

Please sign in to comment.