Skip to content

[BUG] PotFactory.whitelisted_deployers is incorrect in prod/dev #52

Closed
@lachlanglen

Description

@lachlanglen

Describe the bug

When I call get_config() on the potfactory contract, I get the following response:

View call: v1.potfactory.potlock.near.get_config()
{
  owner: 'potlock.near',
  admins: [ 'plugrel.near', 'impact.sputnik-dao.near' ],
  protocol_fee_basis_points: 200,
  protocol_fee_recipient_account: 'impact.sputnik-dao.near',
  whitelisted_deployers: [
    'lachlan.near',        'plugrel.near',
    'wendersonpires.near', 'builddao.near',
    'james.near',          'efiz.near',
    'ossround.near',       'airound.near',
    'buildersround.near',  'africaround.near',
    'ecofund.near',        'ukraineround.near',
    'collegeround.near',   'ndcround.near',
    'marketinground.near', 'marketingdao.near',
    'carina.akaia.near'
  ],
  require_whitelist: true
}

However, when I view the PotFactory in the django admin dashboard, there are no whitelisted deployers:
Screenshot 2024-07-22 at 10 13 00 AM

This is confirmed in the django shell on dev:
Screenshot 2024-07-22 at 10 13 37 AM

We need to:

  • Determine why whitelisted_deployers is not up to date (review indexing logic, including for this recent transaction which should have been indexed)
  • Fix indexing logic & reindex so that correct whitelisted deployers are saved in db

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions