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

tune simulation tests to use 10^18 decimals #1610

Open
mtsitrin opened this issue Dec 4, 2024 · 0 comments
Open

tune simulation tests to use 10^18 decimals #1610

mtsitrin opened this issue Dec 4, 2024 · 0 comments
Labels

Comments

@mtsitrin
Copy link
Contributor

mtsitrin commented Dec 4, 2024

currently, the simulation tests uses non EVM token decimals in some places:

  • non 10^18 power reduction
  • funding genesis accounts with int64 amounts
  • different fees have adym notion instead of DYM

e.g x/incentives/simulation/genesis.go:

func getFee(r *rand.Rand) math.Int {
	// use comparatively small numbers as the initial account balance is always bounded with max Int64 in simulation
	w, _ := simulation.RandPositiveInt(r, commontypes.ADYM.MulRaw(100_000))
	return w
}
@mtsitrin mtsitrin added the t:testing Tests label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant