Token transaction method and device based on blockchain, electronic equipment and storage medium
A transaction method and block chain technology, applied in the field of block chain-based token transaction methods, devices, electronic equipment and storage media, can solve the problems of complicated transactions, inability to automate transactions, high transaction costs, etc. Equality, avoiding monopoly, and improving data stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment 1
[0081] The currency is issued based on a unified standard, and the ERC-20 standard is selected in this application. The following steps are the token issuance process:
[0082] User A builds a token smart contract:
[0083] The functions of the AllOfToken smart contract are as follows:
[0084] Define the ERC-20 standard interface;
[0085] The AllOfToken smart contract implements the standard interface of ERC-20:
[0086] Initialization attributes: specify the token name name: AllOfToken, token abbreviation symbol: AOT, the smallest unit of the token that can be traded with decimal places 0.000000000000000001decimals-18 digits, the total supply of tokens issued totalSupply-100000000, initialize the account of the token will own all tokens;
[0087] Token transfer transaction transfer, used to transfer tokens from one address to another:
[0088] Check whether the receiver's to address is legal;
[0089] Check whether the sender's from balance is sufficient;
[0090] Ch...
specific Embodiment 2
[0166] User A creates a token pool by himself to provide token liquidity and obtain the benefits of transaction fees paid by traders for each transaction.
[0167] First, user A associates his wallet account with 0x1016f75c54c607f082ae6b0881fac0abeda21781;
[0168] User A creates a token pool:
[0169] Set the value function algorithm:
[0170]
[0171] Select VBI, ESC, WESH, UIK, WFT five tokens to add to the token pool;
[0172] And calculate the weight of each token in the token pool (can be added according to any ratio), as follows:
[0173]
[0174] Calculate the value function V according to the value function definition, and V is a constant value after initialization:
[0175] V=14.02 6.00% *14.02 6.00% *100.48 43.00% *39.72 17.00% *65.43 28.00%
[0176] ≈1.171669*1.171669*7.259292*1.869957*3.224167
[0177] ≈60.083233
[0178] Set the fee rate of the token pool to 0.07%. This parameter determines the additional transaction cost that the trader needs to...
specific Embodiment 3
[0211] Token transactions are as follows:
[0212]
[0213] After user B selects the currency to sell, the quantity to sell, and the currency to buy, he sends a request to buy tokens to the market maker smart contract in the blockchain: transaction ID, buy tokens, sell tokens, sell tokens Number of coins {0135366759, VBI, WESH, 2.003005220767003784};
[0214] When the market maker smart contract parses the request and user B sends the token WESH to obtain the token VBI, all other token balances remain unchanged. Calculate the number of VBI tokens that can be purchased by 2.003005220767003784 WESH tokens;
[0215] Knowing that the value function after the transaction should be the same as before the transaction, the formula is derived as follows:
[0216]
[0217]
[0218]
[0219]
[0220]
[0221] The selling volume of token WESH sold by Ai: Ai=2.003005220767003784
[0222] Bo is the current balance of the sold token WESH: Bo=100.48
[0223] Bi is the cu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com