ensdomains / ens-app

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

A few changes to make sure new exponential pricing works on Ropsten #1474

Closed makoto closed 2 years ago

makoto commented 2 years ago
Screenshot 2022-04-11 at 12 55 09

How to get released names on Ropsten

Run the following query on https://thegraph.com/hosted-service/subgraph/ensdomains/ensropsten


{
    registrations(first:5, where:{expiryDate_gt:"1641035869"}, orderBy:expiryDate){
    expiryDate
    labelName
  }
}```
netlify[bot] commented 2 years ago

Deploy Preview for epic-meitner-ba2575 ready!

Name Link
Latest commit 913009e1fe716ef8532de45c9fea5f1940d70121
Latest deploy log https://app.netlify.com/sites/epic-meitner-ba2575/deploys/6255ac696906dc000962d9d0
Deploy Preview https://deploy-preview-1474--epic-meitner-ba2575.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

makoto commented 2 years ago

One thing I noticed is that the base price goes medium when I increase the renewal period on Tenderly mainnet fork whereas it's not happening on my locally deployed dataset.

Screenshot 2022-04-12 at 18 06 07 Screenshot 2022-04-12 at 18 05 55

To derive base fee the data it calls permanentRegistrarController.rentPrice with 1 year (getRentPrice) and with 0 year (getPremiumPrice) and I am doing the diff between the two.

{
  duration: 63113904,
  getRentPrice:         '487 818 043 070793161435',
  getPremiumPrice: '487 850 788 781227670488',
  diff: '-32745710434451456'
}

When I output the two, duration 0 rent price (getPremiumPrice) is more expensive than duration 1 year (getRentPrice)