ensdomains / ens-app

Legacy ENS manager app
https://legacy.ens.domains/
BSD 2-Clause "Simplified" License
224 stars 266 forks source link

Exponential premium #1447

Closed makoto closed 2 years ago

makoto commented 2 years ago

This integrates https://github.com/ensdomains/ens-contracts/pull/53 to ens app where premium starts from 100 million USD and decrease exponentially over 21 days.

To make the chart easier to see, UI was changed to show the starting curve of the current premium up until 7 remaining days. It also changes the scaling from daily to hourly in the final 24 hrs

To try the simulated data, point your Metamask RPC endpoint to https://rpc.tenderly.co/fork/5cd9dd07-e41f-4ace-a3c9-78c4e8fc94ed and connect to https://exponential.surge.sh . This is a forked version of mainnet as of 14309449 (2022-03-02 19:13).

You can use this dune dashboard to find names in the premium period of the specific snapshot

Dependencies

 How to test locally

netlify[bot] commented 2 years ago

✔️ Deploy Preview for epic-meitner-ba2575 ready!

🔨 Explore the source changes: 8bac6a74e4e5691819a3d16bbd6a24a046823de0

🔍 Inspect the deploy log: https://app.netlify.com/sites/epic-meitner-ba2575/deploys/622a133ee84a0a00093f3706

😎 Browse the preview: https://deploy-preview-1447--epic-meitner-ba2575.netlify.app

Arachnid commented 2 years ago

What's up with the screenshot of marsha.eth? It claims that 8 eth is $5, and the gas fee is $47, but the total of those two is $22,809.

makoto commented 2 years ago

As you pointed out, looks like the app is taking the price based on the current time, than the forked time. I updated https://dune.xyz/queries/19108/38935 to based on the current time and checked a few prices and they seem correct now.

Screenshot 2022-03-07 at 22 23 08 Screenshot 2022-03-07 at 22 26 25 Screenshot 2022-03-07 at 22 26 00 Screenshot 2022-03-07 at 22 26 59