You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When take rate is set too high in simulations, asset.TotalTokens decay too quickly such that there isn't enough tokens to calculate reward distribution.
https://github.com/AaronCQL/feather-core. Running simulations with --Seed=51:
go test ./app --benchmem --run='^$' --bench='^BenchmarkSimulation' --NumBlocks=200 --BlockSize=30 --InitialBlockHeight=1 --Seed=51
Results in error:
simulate.go:302: error on block 67/200, operation (14/27) from x/alliance:
failed to execute message; message index: 0: rpc error: code = InvalidArgument desc = Cannot redelegate to the same validator [terra-money/[email protected]/baseapp/baseapp.go:799]
Comment: unable to deliver tx
Running with a large enough --NumBlocks and --BlockSize may sometimes also cause errors:
// This passes:
go test ./app --benchmem --run='^$' --bench='^BenchmarkSimulation' --NumBlocks=200 --BlockSize=30 --InitialBlockHeight=1 --Seed=1
// This fails:
go test ./app --benchmem --run='^$' --bench='^BenchmarkSimulation' --NumBlocks=400 --BlockSize=50 --InitialBlockHeight=1 --Seed=1
// With this error:
Simulating... block 169/400, operation 0/3.panic: failed to rebalance assets in x/alliance module: there are no delegations yet
When take rate is set too high in simulations, asset.TotalTokens decay too quickly such that there isn't enough tokens to calculate reward distribution.
Stacktrace
The text was updated successfully, but these errors were encountered: