Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
What specifies the price of a jetton?

Where is the line of code that specifies the price of a jetton? Is the price of a jetton always what I choose or does it change with supply and demand?

This question was imported from Telegram Chat: https://t.me/tondev_eng/9849

Votes Newest


When added to a liquidity pool protocol, a jetton is defined by supply and demand. If you are looking for a way to sell a jetton at a single fixed price, then you're likely looking for an ICO smart contract:


Where the amount of TON sent with the transaction is multiplied by some value of jetton to mint to the sender.

int jetton_amount = buy_amount; ;; rate 1 jetton = 1 toncoin; multiply to price here

;; additional code

mint_tokens(sender_address, jetton_wallet_code, amount, master_msg);
Posted 3 months ago
Edited 3 months ago
364 × 5 Administrator
1 Answer
3 months ago
3 months ago