Skip to content

Chronicles aren't properly reimbursed #1800

Open
@penumbra23

Description

@penumbra23

Description

Chronicles aren't refunded properly, which always creates a tight underflow in their balances. This might cause the chronicles to go out of funds in a long running environment.

Steps to Reproduce

  1. Run benchmark tests (tc-cli benchmark) with 5-10 messages
  2. Observe the chronicle balances
  3. On the next tc-cli deploy command it tries to refund chronicles

Sample logs

2025-04-14T08:39:31.473932Z  INFO tc_cli::print: transfering 0.017m ETH to 0x18C0783e91140165058A2a88135E33Ef22B54991
2025-04-14T08:39:31.474713Z  INFO tc_cli::print: funding chronicle target account
2025-04-14T08:39:31.474956Z  INFO tc_cli::print: transfering 0.024m ETH to 0xB7c2F7EE1168BE11d13657Ce09ca9EC82318D04F
2025-04-14T08:39:31.532247Z  INFO tc_cli::print: funding chronicle target account
2025-04-14T08:39:31.532520Z  INFO tc_cli::print: transfering 0.024m ETH to 0x255d580d3E9757fc8c02BCB4cf69ebFDA4DCD1E0
2025-04-14T08:39:32.000162Z  INFO tc_cli::print: funding chronicle target account
2025-04-14T08:39:32.000373Z  INFO tc_cli::print: transfering 0.638 JOC to 0x92ea95f76df4323f8ec3BAC8FbFd7C808Dc7bEa4
2025-04-14T08:39:32.001146Z  INFO tc_cli::print: funding chronicle target account
2025-04-14T08:39:32.001276Z  INFO tc_cli::print: transfering 0.638 JOC to 0x18C0783e91140165058A2a88135E33Ef22B54991
2025-04-14T08:39:32.001984Z  INFO tc_cli::print: funding chronicle target account
2025-04-14T08:39:32.002165Z  INFO tc_cli::print: transfering 0.638 JOC to 0x255d580d3E9757fc8c02BCB4cf69ebFDA4DCD1E0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions