Bonding Curve
Last updated
Last updated
Contract Name: move_fun::bonding_curve
Contract Address: [tba]
Represents a bonding curve for a token.
Name | Type | Description |
---|---|---|
Initializes the bonding curve with initial price and growth constant.
Calculates the growth constant ( k ) based on the bonding curve parameters.
Calculates the token price based on the supply and bonding curve parameters.
Adjusts the bonding curve based on a new target market cap.
Returns the initial price of the bonding curve for a token.
Returns the growth constant ( k ) for the bonding curve of a token.
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Return Values | Type | Description |
---|---|---|
Return Values | Type | Description |
---|---|---|
initial_price_numerator
u128
Initial price numerator for the token.
initial_price_denominator
u128
Initial price denominator for the token.
growth_constant
u128
Growth constant (k) that determines how the price scales with supply.
signer_ref
signer
The signer's reference.
initial_price_numerator
u128
The initial numerator for the token price.
initial_price_denominator
u128
The initial denominator for the token price.
growth_constant
u128
The growth constant (k) for the bonding curve.
initial_price_numerator
u128
Initial price numerator.
initial_price_denominator
u128
Initial price denominator.
target_price_numerator
u128
Target price numerator.
target_supply
u128
Target supply amount.
max_supply
u128
Maximum supply amount.
curve
&BondingCurve
The bonding curve reference.
max_supply
u128
Maximum supply of the token.
decimals
u128
Number of decimals to use for precision.
new_supply_base_value
u128
The new supply base value.
new_supply_exponent_value
u128
The new supply exponent value.
coin_addr
address
Address of the token.
initial_price_numerator
u128
Initial price numerator.
initial_price_denominator
u128
Initial price denominator.
target_price_numerator
u128
Target price numerator.
target_supply
u128
Target supply amount.
max_supply
u128
Maximum supply amount.
initial_price_numerator
u128
Initial price numerator of the token.
initial_price_denominator
u128
Initial price denominator of the token.
growth_constant
u128
Growth constant ( k ) of the bonding curve.