# Functions
No description provided by the author
No description provided by the author
No description provided by the author
Denom change multiplier = 10**decimalsX / 10**decimalsY.
Calculates spot price of Fury accounting for PMTP.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Calculates the spot price of asset X in the preferred denominations accounting for PMTP.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Calculates how much external asset to swap for an asymmetric add to become symmetric.
NOTE: this method is only exported to make testing easier
NOTE: this method panics if a negative value is passed to the sqrt It's not clear whether this condition could ever happen given the external constraints on the inputs (e.g.
This function should only be used when when more external asset is required in order for an add to be symmetric i.e.
NOTE: this method is only exported to make testing easier
NOTE: this method panics if a negative value is passed to the sqrt It's not clear whether this condition could ever happen given the constraints on the inputs (i.e.
Calculate pool units taking into account the current pmtpCurrentRunningRate R - native asset depth A - external asset depth r - native asset amount a - external asset amount P - current number of pool units.
No description provided by the author
More details on the formula https://github.com/Gridironchain/gridnode/blob/develop/docs/1.Liquidity%20Pools%20Architecture.md.
More details on the formula https://github.com/Gridironchain/gridnode/blob/develop/docs/1.Liquidity%20Pools%20Architecture.md.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Determines how the amount of assets added to a pool, x, y, compare to the current pool ratio, Y/X.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
do the thing every mod blocks starting at startHeight.
NewKeeper creates a clp keeper.
No description provided by the author
NewMsgServerImpl returns an implementation of the clp MsgServer interface for the provided Keeper.
NewQuerier is the module level router for state queries.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Need more x token to make Y/X == y/x.
Need more y token to make Y/X == y/x.
No description provided by the author
No description provided by the author
Y/X == y/x.
# Structs
No description provided by the author
Keeper of the clp store.
No description provided by the author
No description provided by the author
No description provided by the author
Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author