Closed tserg closed 1 month ago
The deploy script is idempotent, right? So running it again should deploy only the Receptor in this case?
With the state file, yes.
Anyway, I will proceed with deployment on mainnet and update the state file in this PR.
Deployment is successful! I have updated the state file and address.
This PR adds a script to deploy receptor on mainnet. It does not grant permission yet for the Receptor to call
shrine.update_yin_spot_price()
, which can be done when the UI is ready.Initial parameters are ~16.6 mins for update frequency (same as Seer), and 3hrs for TWAP.
I initially wanted to add support for Sepolia, but the prices on Sepolia are too way off (USDC/CASH is ~1.74, but DAI/CASH is ~0.00024) to be meaningful. This can be verified here using the fake USDC (0x07ab0b8855a61f480b4423c46c32fa7c553f0aac3531bbddaa282d86244f7a23) and fake DAI (0x06f2a0dfeff180133de890ad69c6ba294574c5f34a67890fd22464f348c4d03c) by Ekubo.