Router
Last updated
Last updated
Contract Name: move_fun::legacy_coin_router
Contract Address: [tba]
Represents the global storage for managing the bonding curve metadata, and only admins can modify it.
Name | Type | Description |
---|---|---|
Initializes a new bonding curve for a legacy coin. Only callable by the owner of the buy coin.
Allows users to buy legacy coins based on the bonding curve.
Allows users to sell legacy coins back into the bonding curve.
Returns the bonding curve goal for the given coin.
Returns the initial price of the bonding curve.
Returns the DEX where the liquidity pool will be created.
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Input Values | Type | Description |
---|---|---|
Return Values | Type | Description |
---|---|---|
Return Values | Type | Description |
---|---|---|
Return Values | Type | Description |
---|---|---|
initial_price_numerator
u64
Initial price numerator of the bonding curve.
initial_price_denominator
u64
Initial price denominator of the bonding curve.
bonding_curve_goal
u64
Total sales goal after which the liquidity pool is created.
dex
TypeInfo
The DEX where the liquidity pool will be created.
deployer
signer
The deployer's signer reference.
name
String
Name of the legacy coin.
symbol
String
Symbol of the legacy coin.
logo
String
URL to the logo of the coin.
banner
String
URL to the banner of the coin.
description
String
Description of the coin.
links
vector
List of links related to the coin.
max_wallet_balance
Option
Optional maximum wallet balance limit.
bundled_launch_amount_base_value
Option
Optional base value for bundled launch.
bundled_launch_amount_exponent_value
Option
Optional exponent value for bundled launch.
buyer
signer
The buyer's signer reference.
amount_base_value
u64
Base value of the amount to buy.
amount_exponent_value
u64
Exponent value of the amount to buy.
seller
signer
The seller's signer reference.
amount_base_value
u64
Base value of the amount to sell.
amount_exponent_value
u64
Exponent value of the amount to sell.
bonding_curve_goal
u64
The bonding curve goal.
initial_price_numerator
u64
The initial price numerator.
initial_price_denominator
u64
The initial price denominator.
dex
TypeInfo
The DEX where the liquidity pool will be created.