Router
Contract Info
Contract Name:
move_fun::legacy_coin_router
Contract Address: [tba]
Resources
Info
Represents the global storage for managing the bonding curve metadata, and only admins can modify it.
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.
Entry Functions
Create Legacy Coin with Bonding Curve
Initializes a new bonding curve for a legacy coin. Only callable by the owner of the buy coin.
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.
Buy Legacy Coin
Allows users to buy legacy coins based on the bonding curve.
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.
Sell Legacy Coin
Allows users to sell legacy coins back into the bonding curve.
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.
View Functions
Get Bonding Curve Goal
Returns the bonding curve goal for the given coin.
bonding_curve_goal
u64
The bonding curve goal.
Get Initial Price
Returns the initial price of the bonding curve.
initial_price_numerator
u64
The initial price numerator.
initial_price_denominator
u64
The initial price denominator.
Get DEX
Returns the DEX where the liquidity pool will be created.
dex
TypeInfo
The DEX where the liquidity pool will be created.
Last updated