question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bounty] FeeCurrencyWhitelist is not UsingRegistry storage variable

See original GitHub issue

Expected Behavior

Because the Registry address 0x0..ce10 (and for that matter the SortedOracles address) are not expected to ever change, this contract can make the address static in its bytecode and avoid a complex Governance situation.

In future it could save this and other core contracts a marginal amount of gas avoiding the relevant storage load operations.

This decision and migration from a storage registry address to a bytecode registry address should be well documented and understood.

Current Behavior

In this gitcoin bounty PR, it was discovered that FeeCurrencyWhitelist is not already consuming UsingRegistry for lack of use.

However, the ticket specifies that fee currencies should have oracle reports before they are whitelisted, meaning a lookup to the SortedOracles contract through the registry. Introducing FeeCurrencyWhitelist is UsingRegistry implies a storage level change which requires a new proxy deployment and initialization, and an atomic migration from the existing whitelist.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
deepakhb2commented, May 26, 2021

Thank you @critesjosh I have submitted the work.

1reaction
critesjoshcommented, May 25, 2021

I am not able to submit bounty. It is throwing error like CELO address is invalid but I have submitted before with same address. Please check on the same and confirm. Thank you.

ok, I am chatting with gitcoin support right now. We’ll try to resolve this soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Celo Contracts Audit - OpenZeppelin blog
A registry of all contracts and addresses is found here, which is used by most contracts in the protocol to find and access...
Read more >
Solidity Documentation - Read the Docs
Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features. With Solidity you can create ...
Read more >
Opium Smart Contracts Security Analysis | by Ivan Ivanitskiy
registry variable of usingRegistry contract has private visibility level without getter function. This may affect user experience in a negative ...
Read more >
Untitled
Pertussis shot for adults, Path of exile currency for sale, Via oberdan roma. ... Sal visokotonci, Yuanquan wang, Lichfield registry office cost!
Read more >
Extended Registry Configuration - OKD Documentation
When using a whitelist, only the specified registries are accessible ... However, the middleware section may not be overridden using environment variables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found