Module cw20_bonding::curves [−][src]
Structs
spot price is always a constant value
DecimalPlaces should be passed into curve constructors
spot_price is slope * supply
spot_price is slope * (supply)^0.5
Traits
This defines the curves we are using.
Functions
decimal returns an object = num * 10 ^ -scale We use this function in contract.rs rather than call the crate constructor itself, in case we want to swap out the implementation, we can do it only in this file.