Ironclad / Ironclad/rivet

[Bug]: Run Cost calculator outputs wrong values

Open
#324 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4.7k
Forks
388
PR merge metrics
No merged PRs in 30d

Description

### What happened?

I think there is something wrong with the Run Cost calculator. The main screen says one value, but a node says another, twice as much (see screenshot).

In Discord, user Treatray commented: "Some thing happened to me, ended up with a $40 bill which I though would be $3"

### What was the expected functionality?

The Run Cost in the main screen should be the sum total of the Run Cost of all nodes.

### Describe your environment

Windows 10, node v20.10

### Relevant log output

_No response_

### Relevant screenshots

![image](https://github.com/Ironclad/rivet/assets/53231041/f4629b6a-9fd2-4521-b41e-566e647030ec)

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the discrepancy between the Run Cost shown on the main screen and the Run Cost shown for individual nodes, using the screenshot and the Windows 10/node v20.10 environment as context. Trace the Run Cost calculator entry points and verify that the main-screen total equals the sum of all node costs; done means the displayed values agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.