Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@cyberhorsey I run tokenonmics tests but found there are errors: #13043

Closed
dantaik opened this issue Jan 24, 2023 · 0 comments · Fixed by #12988
Closed

@cyberhorsey I run tokenonmics tests but found there are errors: #13043

dantaik opened this issue Jan 24, 2023 · 0 comments · Fixed by #12988
Assignees

Comments

@dantaik
Copy link
Contributor

dantaik commented Jan 24, 2023

@cyberhorsey I run tokenonmics tests but found there are errors:

commiting  12 with commit slot 3
proposing 12 with commit slot 3
Proposed block 0x765f1c9ef93964233b559131ac15a1f1b5d6c2618ab782e963832341fbe1a392
-----------PROPOSED--------------- 12 BigNumber { value: "4" }
NEW PROOF REWARD 0.989249431387414707  TKO
NEW PROPOSER TKO BALANCE 100.0  TKO
NEW BLOCK FEE 1.09375  TKO
AssertionError: expected false to equal true
    at JsonRpcProvider.<anonymous> (/Users/d/Projects/taiko/taiko-mono/packages/protocol/test/tokenomics/Tokenomics.test.ts:163:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  showDiff: true,
  actual: false,
  expected: true,
  operator: 'strictEqual'
}
    ✔ block fee should increase as the halving period passes, while no blocks are proposed (5105ms)
commiting  14 with commit slot 4
proposing 14 with commit slot 4
Proposed block 0xc81fa5dcb3903d311978cbefef04c648dc7e40648c901c324118ab0caf66997a
-----------PROPOSED--------------- 14 BigNumber { value: "5" }
NEW PROOF REWARD 0.989249431387414707  TKO
NEW PROPOSER TKO BALANCE 100.0  TKO
NEW BLOCK FEE 1.240234375  TKO
AssertionError: expected false to equal true
    at JsonRpcProvider.<anonymous> (/Users/d/Projects/taiko/taiko-mono/packages/protocol/test/tokenomics/Tokenomics.test.ts:163:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  showDiff: true,
  actual: false,
  expected: true,
  operator: 'strictEqual'
}
commiting  13 with commit slot 5
proposing 13 with commit slot 5
Proposed block 0x0aab62ee9acbd2f61aa2c279df36eaa025479bcb8b28030099b5202892f74484
-----------PROPOSED--------------- 13 BigNumber { value: "6" }
NEW PROOF REWARD 0.989249431387414707  TKO
NEW PROPOSER TKO BALANCE 100.0  TKO
NEW BLOCK FEE 1.240234375  TKO
AssertionError: expected false to equal true
    at JsonRpcProvider.<anonymous> (/Users/d/Projects/taiko/taiko-mono/packages/protocol/test/tokenomics/Tokenomics.test.ts:163:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  showDiff: true,
  actual: false,
  expected: true,
  operator: 'strictEqual'
}
    ✔ expects the blockFee to go be 0 when no periods have passed


  3 passing (34s)

Tests seem to pass, but there are assertion errors. Please take a look.

Originally posted by @dantaik in #13041 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants