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

Reduce Snowbridge Fees #503

Open
2 of 3 tasks
vgeddes opened this issue Dec 3, 2024 · 1 comment
Open
2 of 3 tasks

Reduce Snowbridge Fees #503

vgeddes opened this issue Dec 3, 2024 · 1 comment

Comments

@vgeddes
Copy link
Contributor

vgeddes commented Dec 3, 2024

This is a request for the fellowship to whitelist a Snowbridge governance preimage. When executed, it will reduce snowbridge fees for users.

I've already submitted the necessary preimage on the relay and collectives chain.

Could the fellowship please create a fellowship referendum using the following call. I don't have the necessary privileges:

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x3d003e0202afb477613058cad73e5bc7d244987bfe48b18208b703e3196e2ef5659f6e0fc835000000010a000000

Details

The proposal executes the following:

  1. Updates AH with a new Polkadot->Ethereum base fee of 1.49 DOT. Or more plainly, users will only need to pay 1.49 DOT to send messages to Ethereum.
  2. Updates BH with new pricing parameters:
  • ExchangeRate: 0.002288329519450801 ETH/DOT
  • FeePerGas: 10.000000000 GWEI

Artifacts

The preimage was generated using our governance tooling:

cargo run --features polkadot --bin snowbridge-preimage -- pricing-parameters --exchange-rate-numerator 1 --exchange-rate-denominator 437 --multiplier-numerator 1  --multiplier-denominator 1  --fee-per-gas 10  --local-reward 0.01  --remote-reward 0.00025
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s
     Running `target/debug/snowbridge-preimage pricing-parameters --exchange-rate-numerator 1 --exchange-rate-denominator 437 --multiplier-numerator 1 --multiplier-denominator 1 --fee-per-gas 10 --local-reward 0.01 --remote-reward 0.00025`
BridgeHub:
  ExchangeRate: 0.002288329519450801 ETH/DOT
  FeePerGas: 10.000000000 GWEI
  LocalReward: 0.0100000000 DOT [100000000 PLANCK]
  RemoteReward: 0.000250000000000000 ETH [250000000000000 WEI]
AssetHub:
  BaseFee: 1.4929540998 DOT, [14929540998 PLANCK]
Storage key for 'BridgeHubEthereumBaseFee': 0x5fbc5c7ba58845ad1f1a9a7c5bc12fad
Preimage Hash: 0x8083e29930deaddd690c01f53456149bfbce2ea6f8d06a16f1b1c320d6a3c743
Preimage Size: 202
0x1a0208630003000100a90f030c2f00000602b25ec1b65946c9015302b1ca223c39210800000000000000000000e1f50500000000000000000000000000a031a95fe3000000000000000000000000000000000000000000000000000000e40b5402000000000000000000000000000000000000000000000000000000000064a7b3b6e00d00000000000000002000630003000100a10f030c2f000006025e45e4240094000404405fbc5c7ba58845ad1f1a9a7c5bc12fad4086b7de790300000000000000000000002000

And then run through opengov-cli:

Submit the preimage for the Fellowship referendum:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x2b00d41f0004010004082f0000060342c78b76216f8817008083e29930deaddd690c01f53456149bfbce2ea6f8d06a16f1b1c320d6a3c743

Open a Fellowship referendum to whitelist the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x3d003e0202afb477613058cad73e5bc7d244987bfe48b18208b703e3196e2ef5659f6e0fc835000000010a000000

Submit the preimage for the public referendum:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/extrinsics/decode/0x0a00310317031a0208630003000100a90f030c2f00000602b25ec1b65946c9015302b1ca223c39210800000000000000000000e1f50500000000000000000000000000a031a95fe3000000000000000000000000000000000000000000000000000000e40b5402000000000000000000000000000000000000000000000000000000000064a7b3b6e00d00000000000000002000630003000100a10f030c2f000006025e45e4240094000404405fbc5c7ba58845ad1f1a9a7c5bc12fad4086b7de790300000000000000000000002000

Open a public referendum to dispatch the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/extrinsics/decode/0x1500160d02a1121009c8fe5d479bd58debacf38c8fba87b2e280c9f03cff1d06d99860b7d6cc0000000164000000

Batch to submit on Polkadot Relay Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/extrinsics/decode/0x1a04080a00310317031a0208630003000100a90f030c2f00000602b25ec1b65946c9015302b1ca223c39210800000000000000000000e1f50500000000000000000000000000a031a95fe3000000000000000000000000000000000000000000000000000000e40b5402000000000000000000000000000000000000000000000000000000000064a7b3b6e00d00000000000000002000630003000100a10f030c2f000006025e45e4240094000404405fbc5c7ba58845ad1f1a9a7c5bc12fad4086b7de7903000000000000000000000020001500160d02a1121009c8fe5d479bd58debacf38c8fba87b2e280c9f03cff1d06d99860b7d6cc0000000164000000

Batch to submit on Polkadot Collectives Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x2804082b00d41f0004010004082f0000060342c78b76216f8817008083e29930deaddd690c01f53456149bfbce2ea6f8d06a16f1b1c320d6a3c7433d003e0202afb477613058cad73e5bc7d244987bfe48b18208b703e3196e2ef5659f6e0fc835000000010a000000

Tasks

  • Submit the preimage for the Fellowship referendum
  • Submit the preimage for the public referendum
  • Open a Fellowship referendum to whitelist the call
@acatangiu
Copy link
Contributor

@vgeddes I checked the calls and everything looks good except the following questions:

  1. how can one validate the raw storage changes on AH?
    Screenshot 2024-12-17 at 12 59 55
    please add an ensure_root() call to change this in the future - setting storage directly is obfuscated and error-prone.
  2. did you execute/simulate this referenda under chopsticks to make sure everything executed successfully (avoid silly failures like wrong weight-limits for example)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants