Skip to content

db does not return correct value for rewardpool #181

@jellegerbrandy

Description

@jellegerbrandy

This is the value of await paratii.eth.tcr.getChallenge(challengeId):

 {
  '0': '2500000000000000000',
  '1': '0xCbe4f07b343171ac37055B25a5266f48f6945b7d',
  '2': false,
  '3': '5000000000000000000',
  '4': '0',
  rewardPool: '2500000000000000000',
  challenger: '0xCbe4f07b343171ac37055B25a5266f48f6945b7d',
  resolved: false,
  stake: '5000000000000000000',
  totalTokens: '0' }

This is dbRecord.tcrStatus.data.challenge, where dbRecord = await paratii.db.vids.get(id)

{ __v: 0,
  voteQuorum: 50,
  blockNumber: 115290,
  challenger: '0xCbe4f07b343171ac37055B25a5266f48f6945b7d',
  commitEndDate: 1534255105,
  commitStartDate: 1534255100,
  data: '',
  listingHash: '0xb6e8e437e0b5a5040849044f461ff3dae269378a202997ac91d95f7d5db41e4e',
  revealEndDate: 1534255110,
  rewardPool: null,
  totalTokens: null,
  id: '9' }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions