[][src]Module cw20_bonding::curves

Structs

Constant

spot price is always a constant value

DecimalPlaces

DecimalPlaces should be passed into curve constructors

Linear

spot_price is slope * supply

SquareRoot

spot_price is slope * (supply)^0.5

Traits

Curve

This defines the curves we are using.

Functions

decimal

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.