Currently, there is a flake when running the gradual load workload test in the e2e tests: https://github.com/ava-labs/hypersdk/actions/runs/14382901714/job/40330980490?pr=2004#step:4:1595
We get the current network unit prices here:
|
unitPrices, err := cli.UnitPrices(ctx, false) |
which we use to compute the fee that each transfer back to the original funder will use:
|
fee, err := fees.MulSum(units, unitPrices) |
The amount we send to the original funder is determined as follows:
|
amount := balance - fee |
|
action := createTransfer(to.Address(), amount, nonce) |
However, it seems that the unitPrices that we queried are lower than the actual network fees due to the fact that we're getting an insufficient balance error.
Currently, there is a flake when running the gradual load workload test in the
e2etests: https://github.com/ava-labs/hypersdk/actions/runs/14382901714/job/40330980490?pr=2004#step:4:1595We get the current network unit prices here:
hypersdk/tests/e2e/e2e.go
Line 548 in 3db59d2
which we use to compute the fee that each transfer back to the original funder will use:
hypersdk/tests/e2e/e2e.go
Line 565 in 3db59d2
The amount we send to the original funder is determined as follows:
hypersdk/tests/e2e/e2e.go
Lines 584 to 585 in 3db59d2
However, it seems that the
unitPricesthat we queried are lower than the actual network fees due to the fact that we're getting an insufficient balance error.