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

support rollapp tokens with different token decimals #1469

Open
mtsitrin opened this issue Nov 13, 2024 · 0 comments
Open

support rollapp tokens with different token decimals #1469

mtsitrin opened this issue Nov 13, 2024 · 0 comments

Comments

@mtsitrin
Copy link
Contributor

currently we enfroce 18 decimals

func (dm DenomMetadata) Validate() error {
...
	// validate exponent
	// TODO: currently only 18 decimals are supported 
	if AllowedDecimals(dm.Exponent) != Decimals18 {
		return fmt.Errorf("invalid exponent")
	}

	return nil
}

when changed, need to handle IRO support as well

func (lbc BondingCurve) SupplyDecimals() int64 {
	// TODO: allow to be set on creation instead of using default
	rollappTokenDefaultDecimals := int64(18)
	return rollappTokenDefaultDecimals
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant