A user asset management method and device, computer equipment and storage medium
By deploying token contracts on the blockchain to manage users' locked assets, the issue of DAO members' enthusiasm for voting on multiple proposals is resolved. This enables users to participate in voting on multiple proposals simultaneously, increasing voting enthusiasm and preventing potential asset losses.
Patent Information
- Application Number
- CN202310240193.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-03-13
AI Technical Summary
When faced with multiple proposals, DAO members are unable to participate in voting on multiple proposals simultaneously due to insufficient tokens, which reduces their enthusiasm for voting.
By deploying token contracts, an asset management strategy is set for blockchain users to participate in proposal voting, a maximum locked asset amount is obtained, and the maximum locked asset amount for users is updated when conditions are met, allowing users to participate in voting on multiple proposals simultaneously.
This increased the enthusiasm of blockchain users to vote on proposals, ensured that users could participate in voting on multiple proposals simultaneously, and prevented the loss of organizational assets due to hacker attacks.
Smart Images

Figure CN116307343B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a user asset management method, apparatus, computer equipment, and storage medium. Background Technology
[0002] Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. DAO (Distributed Autonomous Organization) is a blockchain-based organizational structure. DAOs empower their members with voting power by issuing tokens, enabling them to vote on organizational proposals and decisions, thus achieving organizational autonomy.
[0003] In related technologies, when DAO members vote on a proposal, a corresponding number of tokens are deducted from their accounts to complete the vote. When a DAO member wants to vote on multiple proposals, the amount of tokens to be deducted for each proposal needs to be allocated reasonably according to the total amount of tokens they possess. However, DAO members with a smaller total amount of tokens cannot participate in voting on multiple proposals simultaneously, thus reducing their enthusiasm for participating in voting decisions. Summary of the Invention
[0004] This application provides a user asset management method, apparatus, computer equipment, and storage medium, which can increase the enthusiasm of blockchain users to vote on proposals.
[0005] This application provides a user asset management method, including:
[0006] Receive voting requests from blockchain users for a target proposal;
[0007] Obtain the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal. The highest locked asset amount is the highest locked asset amount among the locked asset amounts of all proposals that the blockchain user has participated in and has not yet ended.
[0008] If the target locked asset amount is not less than the maximum locked asset amount, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0009] Accordingly, this application also provides a user asset management device, including:
[0010] The first receiving unit is used to receive voting requests from blockchain users for the target proposal;
[0011] The first acquisition unit is used to acquire the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required by the target proposal. The highest locked asset amount is the highest locked asset amount among the locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not yet ended.
[0012] The first update unit is configured to update the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount if the target locked asset amount is not less than the maximum locked asset amount, and to vote on the target proposal in response to the voting request.
[0013] In some embodiments, the device further includes:
[0014] The first response unit is configured to vote on the target proposal in response to the voting request if the target locked asset amount is less than the maximum locked asset amount.
[0015] In some embodiments, the first update unit includes:
[0016] The update sub-unit is used to set the target locked asset amount as the new maximum locked asset amount for the blockchain user.
[0017] In some embodiments, the device further includes:
[0018] The second update unit is configured to update the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount if the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than the total asset amount of the blockchain user, and to vote on the target proposal in response to the voting request.
[0019] In some embodiments, the device further includes:
[0020] The second acquisition unit is used to acquire the lock-up duration corresponding to the target locked-up asset amount;
[0021] In some embodiments, the device further includes:
[0022] The unlocking unit is used to unlock the target locked asset amount after the lock-up period.
[0023] In some embodiments, the device further includes:
[0024] The third update unit is used to update the highest locked asset amount corresponding to the blockchain user based on the highest locked asset amount among the locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not yet ended.
[0025] In some embodiments, the device further includes:
[0026] The second receiving unit is used to receive an asset transfer request for the blockchain user and obtain the target amount of assets to be transferred corresponding to the asset transfer request.
[0027] A determining unit is used to determine the amount of transferable assets of a blockchain user based on the highest locked-up asset amount corresponding to the blockchain user.
[0028] The second response unit is configured to transfer the target amount of assets to the blockchain user in response to the asset transfer request if the target amount of assets to be transferred is less than the amount of assets that can be transferred.
[0029] In some embodiments, the determining unit includes:
[0030] The acquisition sub-unit is used to acquire the total assets of the blockchain user.
[0031] A sub-unit is defined to determine the amount of transferable assets based on the difference between the total amount of assets and the maximum amount of locked-up assets.
[0032] Accordingly, this application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any of the user asset management methods provided in this application.
[0033] Accordingly, this application also provides a storage medium that stores multiple instructions, which are adapted for a processor to load and execute the user asset management method described above.
[0034] This application embodiment deploys a token contract, within which an asset management strategy is set for blockchain users participating in proposal voting. Upon receiving a voting request from a blockchain user for a target proposal, the system obtains the maximum locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal. The maximum locked asset amount is the highest locked asset amount among all proposals in which the blockchain user has participated and which have not yet concluded. If the target locked asset amount is not less than the maximum locked asset amount, the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the user votes on the target proposal in response to the voting request. By using the maximum locked asset amount for blockchain users participating in proposal voting as the amount of assets locked by the user, users can participate in voting on multiple proposals simultaneously, thereby increasing the enthusiasm of blockchain users to vote on proposals. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram of a distributed system applied to a blockchain platform, as provided in an embodiment of this application.
[0037] Figure 2 This is a flowchart illustrating a user asset management method provided in an embodiment of this application.
[0038] Figure 3 This is a flowchart illustrating another user asset management method provided in an embodiment of this application.
[0039] Figure 4 This is a structural block diagram of another user asset management device provided in an embodiment of this application.
[0040] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0041] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0042] Those skilled in the art will recognize that embodiments of the present invention can be implemented as a system, apparatus, device, method, or computer program product. Therefore, this disclosure can be specifically implemented in the following forms: entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0043] The following section first introduces some basic concepts involved in the embodiments of this application:
[0044] Blockchain: Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. It is a key concept in Bitcoin, essentially a decentralized database. As the underlying technology of Bitcoin, it consists of a chain of data blocks linked using cryptographic methods. Each data block contains information about a Bitcoin network transaction, used to verify the validity of the information and generate the next block. Generally speaking, a multi-chain blockchain system consists of a data layer, network layer, consensus layer, incentive layer, contract layer, and application layer. In a narrow sense, blockchain is a chain-like data structure that combines data blocks sequentially according to time, and is a distributed ledger that is cryptographically guaranteed to be immutable and unforgeable. In a broad sense, blockchain technology is a new distributed infrastructure and computing method that uses a chain-like data structure to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses smart contracts composed of automated script code to program and manipulate data.
[0045] Smart contracts are a set of agreements defined, distributed, verified, or enforced in digital form, including protocols that allow contract participants to execute these agreements. Smart contracts enable trusted transactions without a third party, and these transactions are traceable and irreversible.
[0046] A DAO is a decentralized autonomous organization, a tool serving organizations. By issuing tokens, DAOs empower their members with the ability to vote on decisions, enabling organizational autonomy. Within the blockchain space, DAOs primarily exist and operate in the form of smart contracts, ensuring openness, transparency, and avoiding human interference and management. They are code-controlled organizations, independent of any institution or individual, capable of automatic evolution and development.
[0047] In related technologies, DAO members lock up their tokens and deduct a corresponding number of tokens when voting on a proposal. However, the existing voting method limits the initiative of DAO members when faced with multiple proposals. If members wish to participate in multiple proposals, they need to allocate tokens, which reduces the enthusiasm of members with small token holdings to participate in community governance.
[0048] Based on the above problems, this application provides a first user asset management method, apparatus, computer equipment, and storage medium, which can increase the enthusiasm of blockchain users to vote on proposals.
[0049] The system involved in the embodiments of this application can be a distributed system formed by connecting a client and multiple nodes (any form of computer device in the network, such as a server or user terminal) through network communication.
[0050] Taking a distributed system as an example of a blockchain platform, please refer to [link / reference]. Figure 1 , Figure 1 This is a schematic diagram illustrating the structure of a distributed system applied to a blockchain platform, as provided in an embodiment of this application. The distributed system 100 consists of multiple nodes 200 (any form of computer device connected to the network, such as servers or user terminals) and clients 300. The nodes 200 form a peer-to-peer (P2P) network. The P2P protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). In the distributed system 100, any machine, such as a server or terminal, can join and become a node 200. A node 200 includes a hardware layer, a middleware layer, an operating system layer, and an application layer.
[0051] See Figure 1 The functions of each node 200 in the illustrated blockchain platform include: routing, a basic function of node 200 used to support communication between nodes 200. In addition to routing, node 200 may also have the following functions:
[0052] Applications are deployed on the blockchain to implement specific business needs. They record data related to the implementation of functions to form record data, carry digital signatures to indicate the source of the task data, and send the record data to other nodes in the blockchain platform. When other nodes successfully verify the source and integrity of the record data, they add the record data to a temporary block.
[0053] For example, the business logic implemented by the application includes:
[0054] A wallet is used to provide the function of conducting electronic currency transactions, including initiating transactions (that is, sending the transaction record of the current transaction to other nodes in the blockchain platform; after the other nodes verify the transaction successfully, they store the transaction record data in a temporary block of the blockchain as a response to acknowledge the validity of the transaction; of course, the wallet also supports querying the remaining electronic currency in the electronic currency address;
[0055] A shared ledger provides functions such as storing, querying, and modifying ledger data. It sends the records of operations on ledger data to other nodes in the blockchain platform. After other nodes verify the validity, they store the records in a temporary block as a response acknowledging the validity of the ledger data. It can also send confirmation to the node that initiated the operation.
[0056] Smart contracts are computerized protocols that can execute the terms of a contract. They are implemented through code deployed on a shared ledger that executes when certain conditions are met. Based on actual business needs, the code is used to complete automated transactions, such as querying the logistics status of goods purchased by a buyer and transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods. Of course, smart contracts are not limited to executing contracts for transactions; they can also execute contracts for processing received information.
[0057] A blockchain consists of a series of blocks that are sequentially generated. Once a new block is added to the blockchain, it will not be removed. The blocks record the data submitted by the nodes in the blockchain platform.
[0058] This application provides a user asset management method, apparatus, storage medium, and computer device. Specifically, the user asset management method of this application can be executed by a computer device, which can be a terminal or a server. The server can be a standalone server, a server network, or a server cluster. For example, the servers described in this application include, but are not limited to, computers, network hosts, single network servers, multiple network server sets, or cloud servers composed of multiple servers. The terminal can be a mobile terminal such as a mobile phone, tablet computer, laptop computer, or PDA, or a fixed terminal such as a desktop computer.
[0059] For example, the computer device could be a server that receives voting requests from blockchain users for a target proposal; obtains the maximum locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal, wherein the maximum locked asset amount is the highest locked asset amount among the locked asset amounts corresponding to all proposals in which the blockchain user has participated and which have not yet ended; if the target locked asset amount is not less than the maximum locked asset amount, then updates the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount, and votes on the target proposal in response to the voting request.
[0060] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0061] This application provides a user asset management method, which can be executed by a terminal or a server. This application example illustrates the user asset management method executed by a server.
[0062] Please see Figure 2 , Figure 2 This is a flowchart illustrating a user asset management method provided in an embodiment of this application. The specific flow of this user asset management method can be as follows:
[0063] 101. Receive voting requests from blockchain users for the target proposal.
[0064] In this embodiment, an organizational contract is deployed on the blockchain. This contract can represent the operational form of a DAO on the blockchain. The DAO grants its members the ability to vote and make decisions by issuing tokens. As a decentralized autonomous organization, the DAO maintains its internal democracy through voting. Typically, a DAO has a token with voting rights, and members can exercise governance over the DAO by holding these tokens.
[0065] In this context, blockchain users are also members of the DAO organization. A target proposal refers to a proposal that blockchain users currently want to vote on.
[0066] 102. Obtain the maximum amount of locked assets corresponding to blockchain users and the target amount of locked assets required for the target proposal.
[0067] In this embodiment, when a blockchain user votes on a proposal, their assets can be locked up without being transferred. Locking up refers to locking the assets; during the lock-up period, the locked assets cannot be used for transfers or other operations. Different proposals in the blockchain can correspond to different amounts of locked assets, that is, the number of assets locked up for the blockchain user.
[0068] In this context, blockchain users' assets can be tokens, and voting on proposals can be completed by locking up the blockchain users' tokens.
[0069] Specifically, the maximum locked asset amount is the highest locked asset amount among all proposals that blockchain users have participated in and that have not yet concluded. The locked asset amount for each proposal refers to the amount of locked assets required for the blockchain to vote on each proposal.
[0070] For example, proposals that blockchain users have participated in and that are not yet finalized can include: Proposal A, Proposal B, Proposal C, and Proposal D. The locked asset amount for Proposal A could be 10, for Proposal B 20, for Proposal C 30, and for Proposal D 15. The highest locked asset amount among all proposals can be determined to be 30, thus the highest locked asset amount for a blockchain user can be 30.
[0071] The target locked asset amount refers to the amount of locked assets required for blockchain users to vote on a target proposal.
[0072] In this embodiment of the application, a token contract, also known as a token contract, is deployed in the blockchain. The token contract can be used to lock up assets when blockchain users participate in voting decisions.
[0073] Specifically, before deploying the token contract on a blockchain platform, you can add lock-up information to the token contract, as follows:
[0074] Record the amount of locked assets in the account in the token contract;
[0075] Struct lockedToken{
[0076] expire / / Expiration date
[0077] amount / / Locked quantity}
[0078] mapping(address=>lockedToken)locks / / The number of tokens locked for a given vote
[0079] uint256 lockExpire / / Lock duration
[0080] function lockToken(uint256 amount,address voter)
[0081] {
[0082] uint256balance=balanceOf(voter);
[0083] require(amount<=balance"insufficient balance");
[0084] lockedToken storage lt=locks[msg.sender];
[0085] If (amount > lt.amount) {
[0086] lt.amount = amount / / Update only if the total locked amount is less than the current locked amount
[0087] lt.expire+=lockExpire;
[0088] }}
[0089] function unlockToken(uint256 amount){
[0090] lockedToken storage lt=locks[msg.sender];
[0091] If(block.timestamp>lt.expire){
[0092] require(amount<=lt.amount,“insufficient balance”);
[0093] lt.amount - = amount
[0094] }else{
[0095] revert("can't unlock");}
[0096] };
[0097] Among them, the number of locked assets in an account refers to the total number of locked assets used by blockchain users for voting, which in this embodiment can be the maximum number of locked assets corresponding to a blockchain user; the expiration time refers to the end time when the locked assets are locked; the lock duration refers to the duration for which the locked assets are locked; the locked quantity refers to the number of assets locked by blockchain users for voting; and the locked quantity of a certain vote refers to the number of locked assets used by blockchain users for voting on a proposal.
[0098] In this embodiment, "updating only when the total locked amount is less than the current locked amount" means that the locked asset amount of a blockchain user is updated when the highest locked asset amount corresponding to the user is less than the locked asset amount required for voting. Furthermore, the token contract with added locking rules is deployed to the blockchain to execute asset locking. The rules of the token contract deployed to the blockchain cannot be changed.
[0099] 103. If the target locked asset amount is not less than the maximum locked asset amount, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0100] In this embodiment of the application, the rule for blockchain users to vote on proposals can be: DAO organization members, i.e., blockchain users, lock assets when voting, and the specific implementation can be as follows:
[0101] function vote(uint256 vote_id,uint256 amount){
[0102] / / Check balance
[0103] let balance=token.balanceOf(msg.sender);
[0104] require(amount<=balance,"insufficient balance");
[0105] / / Lock up the funds
[0106] token.lockToken(amount,msg.sender);
[0107] / / Voting execution logic
[0108] ...}
[0109] Specifically, by comparing the target locked asset amount with the maximum locked asset amount, if the target locked asset amount is not less than the maximum locked asset amount corresponding to the blockchain user, the maximum locked asset amount corresponding to the blockchain user can be updated based on the target locked asset amount in response to the voting request and to complete the voting on the target proposal.
[0110] In some embodiments, the step "update the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount" may include the following operations:
[0111] The target locked asset amount will be used as the new maximum locked asset amount for blockchain users.
[0112] For example, if the maximum locked asset amount for a blockchain user is 30, and the locked asset amount required for the target decision is 35, then the maximum locked asset amount for the blockchain user can be updated to 35 as the new maximum locked asset amount for the blockchain user.
[0113] In some embodiments, to ensure that blockchain users participate in decision-making voting, the method may further include the following steps:
[0114] If the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than the total assets of the blockchain user, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0115] The total assets of a blockchain user refer to the total amount of assets in the user's account. If a blockchain user wants to participate in voting on a decision, their total assets must exceed the amount of locked assets required to participate in the voting.
[0116] Specifically, after comparing the target locked asset amount with the maximum locked asset amount and determining that the target locked asset amount is greater than the maximum locked asset amount corresponding to the blockchain user, the target locked asset amount is then compared with the total assets of the blockchain user. If the target locked asset amount is not greater than the total assets of the blockchain user, the maximum locked asset amount corresponding to the blockchain user can be updated based on the target locked asset amount to respond to the voting request and complete the voting on the target proposal.
[0117] For example, the target locked asset amount could be 35, and the maximum locked asset amount for a blockchain user could be 30. By comparing the target locked asset amount with the maximum locked asset amount, it can be determined that the target locked asset amount is greater than the maximum locked asset amount. Then, the total assets of the blockchain user can be obtained as 50. Comparing the total assets with the target locked asset amount, it can be determined that the target locked asset amount is less than the total assets. Therefore, it can be determined that the target locked asset amount is not less than the maximum locked asset amount, and the target locked asset amount is not greater than the total assets of the blockchain user. Consequently, the maximum locked asset amount of the blockchain user can be updated based on the target locked asset amount, resulting in a new maximum locked asset amount of 35.
[0118] For example, the target locked asset amount could be 35, and the maximum locked asset amount for a blockchain user could be 30. By comparing the target locked asset amount with the maximum locked asset amount, it can be determined that the target locked asset amount is greater than the maximum locked asset amount. Then, the total asset amount of the blockchain user can be obtained as 33. Comparing the total asset amount with the target locked asset amount, it can be determined that the target locked asset amount is greater than the total asset amount. In this case, the blockchain user's total asset amount does not meet the target locked asset amount, indicating that the blockchain user cannot participate in the voting for the target decision.
[0119] In some embodiments, the lock-up logic may further include: if the maximum locked-up asset amount corresponding to a blockchain user is greater than the locked-up asset amount required for voting, there is no need to update the maximum locked-up asset amount of the blockchain user, i.e., the user can directly respond to the voting request and vote on the target proposal. In this case, the method may further include the following steps:
[0120] If the target locked asset amount is less than the maximum locked asset amount, a vote will be taken on the target proposal in response to the voting request.
[0121] Specifically, by comparing the target locked asset amount with the maximum locked asset amount, if the target locked asset amount is less than the maximum locked asset amount corresponding to the blockchain user, the voting request can be responded to directly and the vote on the target proposal can be completed.
[0122] In some embodiments, to facilitate the use of locked assets by blockchain users, the method may further include the following steps:
[0123] Obtain the lock-up period corresponding to the target amount of locked assets.
[0124] In this application embodiment, the lock-up period refers to the length of time during which a blockchain user's assets are locked. When a blockchain user participates in voting on a proposal, the lock-up information may include the number of assets locked and the lock-up period. The number of assets locked is also the number of assets locked.
[0125] For example, obtaining the lock-up information of the target proposal may include: the lock-up quantity is 10, the lock-up duration is 20 hours, etc. Then, when a blockchain user participates in voting on the target proposal, they can lock up 10 of their assets for 20 hours.
[0126] In some embodiments, after the step of "voting on the target proposal in response to a voting request", the following operations may also be included:
[0127] After the lock-up period expires, the target amount of locked assets will be unlocked.
[0128] Unlocking refers to releasing locked assets, which can then be used by blockchain users for transfers and other operations. For example, after locking up a blockchain user's assets for a specified period, the locked assets are then unlocked.
[0129] In some embodiments, when the target locked asset amount is the maximum locked asset amount for a blockchain user, in order to facilitate blockchain users to participate in voting on multiple proposals simultaneously, the following process may also be included after the step "unlocking the target locked asset amount":
[0130] The highest locked asset amount for a blockchain user is updated based on the highest locked asset amount among all proposals that the blockchain user has participated in and which are not yet concluded.
[0131] For example, the target locked asset amount for a blockchain user participating in a target proposal could be 35, or it could be the blockchain user's new maximum locked asset amount. Once the target proposal ends (i.e., the locked asset amount has been locked for the required duration), the target locked amount is unlocked, and the maximum locked asset amount for the blockchain user is updated again based on the locked asset amounts for proposals the blockchain user has participated in and which are not yet concluded.
[0132] For example, proposals that blockchain users have participated in and that are not yet concluded can include: Proposal A, Proposal B, Proposal C, and Proposal D. The locked assets corresponding to Proposal A can be 10, Proposal B can be 20, Proposal C can be 30, and Proposal D can be 15. The highest locked asset amount among all proposals is determined to be 30. Furthermore, the highest locked asset amount for a blockchain user is updated to 30.
[0133] In some embodiments, in order to manage the assets of blockchain users during the asset lock-up period, the method may further include the following steps:
[0134] Receive asset transfer requests from blockchain users and obtain the target amount of assets to be transferred corresponding to the asset transfer request.
[0135] The amount of transferable assets of a blockchain user is determined based on the highest amount of locked-up assets corresponding to that blockchain user.
[0136] If the target amount of assets to be transferred is less than the amount of assets that can be transferred, then in response to the asset transfer request, the target amount of assets of the blockchain user will be transferred.
[0137] In this embodiment of the application, the asset transfer request indicates the transfer of a blockchain user's assets. The asset transfer request can be triggered by business transactions on the blockchain platform, such as transfer transactions.
[0138] The target amount of assets to be transferred refers to the number of assets of the blockchain user to be transferred as indicated in the asset transfer request; the amount of transferable assets refers to the number of assets of the blockchain user that can be transferred.
[0139] In some embodiments, the step "determine the amount of transferable assets of a blockchain user based on the highest locked-up asset amount corresponding to the blockchain user" may include the following operations:
[0140] Obtain the total assets of blockchain users;
[0141] The amount of transferable assets is determined based on the difference between the total assets and the maximum locked-up assets.
[0142] For example, the total assets of a blockchain user can be 50, and the maximum locked assets can be 35. Based on the total assets and the maximum locked assets, the transferable assets are calculated as 50-35=15, so the transferable assets can be 35.
[0143] Furthermore, the target amount of assets to be transferred is compared with the amount of assets the blockchain user can transfer. If the target amount is less than the amount of assets that can be transferred, the target amount can be transferred; if the target amount is not less than the amount of assets that can be transferred, the asset transfer request fails. If the blockchain user still needs to execute the asset transfer request, the amount of assets to be transferred must be completed after the locked assets are unlocked.
[0144] This application discloses a user asset management method, which includes: receiving a voting request from a blockchain user for a target proposal; obtaining the maximum locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal, wherein the maximum locked asset amount is the highest locked asset amount among all proposals in which the blockchain user has participated and which have not yet ended; if the target locked asset amount is not less than the maximum locked asset amount, updating the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount, and voting on the target proposal in response to the voting request. This can increase the enthusiasm of blockchain users to vote on proposals.
[0145] Based on the above description, the following examples will further illustrate the user asset management method of this application. Please refer to... Figure 3 , Figure 3 The following is a flowchart illustrating another user asset management method provided in this application embodiment. When this user asset management method is applied to a server, the specific process can be as follows:
[0146] 201. Receive voting requests from target users for the target proposal.
[0147] In this embodiment of the application, the target user can be a member user of the DAO organization in the blockchain, and the target user can participate in voting on the proposal.
[0148] The voting request instructs the target user to vote on the target proposal.
[0149] 202. Obtain the total locked assets of the target user and the target locked assets required for the target proposal.
[0150] In this embodiment of the application, the total amount of locked assets of the target user can be the maximum amount of locked assets of the target user.
[0151] For example, the total amount of locked assets acquired from the target user can be 10, and the amount of locked assets required for the target proposal can be 5, etc.
[0152] Specifically, the method for locking up the target user's assets can be as follows: record the highest amount of locked assets the target user has participated in voting. For example, if the target user first votes on vote A, the required amount of locked assets could be 6, and then votes on vote B, the required amount of locked assets could be 5. Since the amount of locked assets required for vote B is 5, which is less than the target user's already locked assets of 6, no further locking up is required. If the target user votes on vote B first and then votes on vote A, then the amount of locked assets needs to be set to 6.
[0153] 203. Compare the total locked assets with the target locked assets.
[0154] Furthermore, the total amount of locked assets is compared with the target amount of locked assets to determine whether the total amount of locked assets is greater than the target amount of locked assets, and then the locking request can be responded to based on the determination result.
[0155] 204. If the total locked assets are less than the target locked assets, the total locked assets of the target user will be updated based on the target locked assets, and the target proposal will be voted on according to the voting request.
[0156] Specifically, by comparing the total locked assets with the target total locked assets, if the total locked assets are less than the target total locked assets, it means that the current maximum locked assets of the target user do not meet the target total locked assets. In this case, the target user's locked assets can be adjusted according to the target total locked assets. For example, the target total locked assets can be used as the target user's updated total locked assets. Then, the target user votes on the target proposal.
[0157] 205. If the total locked assets are not less than the target locked assets, then the target proposal will be voted on according to the voting request.
[0158] Specifically, by comparing the total locked assets with the target total locked assets, if the total locked assets are not less than the target locked assets, it means that the current target user's maximum locked assets are sufficient to meet the target locked assets. In this case, there is no need to adjust the target user's locked assets, and the target user can directly vote on the target proposal.
[0159] In this embodiment, when a target user votes on a proposal, only the target user's assets are locked; the assets are not transferred. Specifically, when a target user votes, only the amount of locked assets is recorded, not the amount of assets transferred. For example, if a target user's assets are 10, and voting on proposal A requires locking 6 assets, only the amount of locked assets (6) is recorded. However, the target user still has 10 assets in their account. If the target user now wants to transfer some of these assets to user B, then the user can only transfer 4 assets, which is the amount of unlocked assets in the target user's account.
[0160] In some embodiments, there are requirements regarding the number of DAO organization members participating in proposal voting within the blockchain, specifically, a minimum number of participating DAO organization members must be met. This could allow hackers to borrow large amounts of tokens from the DAO organization through flash loans, create multiple members holding DAO organization tokens, and then vote on proposals to steal organization assets. Once the proposal passes and is executed, the hacker can steal tokens to repay the borrowed tokens, resulting in the malicious proposal being passed and causing the loss of organization assets. In this application's solution, by locking up the assets of participating voting members, and only unlocking and using the assets after the lock-up period expires, hackers cannot immediately repay the borrowed assets after participating in proposal voting, thus preventing attacks on malicious proposals.
[0161] This application discloses a user asset management method, which includes: receiving a voting request from a target user for a target proposal; obtaining the target user's total locked assets and the target locked assets required for the target proposal; comparing the total locked assets with the target locked assets; if the total locked assets are less than the target locked assets, updating the target user's total locked assets based on the target locked assets, and voting on the target proposal according to the voting request; if the total locked assets are not less than the target locked assets, voting on the target proposal according to the voting request. This can increase the enthusiasm of blockchain users to vote on proposals.
[0162] To facilitate better implementation of the user asset management method provided in this application, this application also provides a user asset management device based on the above-described user asset management method. The meanings of the terms used are the same as in the user asset management method described above, and specific implementation details can be found in the descriptions within the method embodiments.
[0163] Please see Figure 4 , Figure 4 A structural block diagram of a user asset management device provided in this application embodiment, the device comprising:
[0164] The first receiving unit 301 is used to receive voting requests from blockchain users for the target proposal;
[0165] The first acquisition unit 302 is used to acquire the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required by the target proposal. The highest locked asset amount is the highest locked asset amount among the locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not yet ended.
[0166] The first update unit 303 is used to update the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount if the target locked asset amount is not less than the maximum locked asset amount, and to vote on the target proposal in response to the voting request.
[0167] In some embodiments, the device may further include:
[0168] The first response unit is configured to vote on the target proposal in response to the voting request if the target locked asset amount is less than the maximum locked asset amount.
[0169] In some embodiments, the first update unit 303 may include:
[0170] The update sub-unit is used to set the target locked asset amount as the new maximum locked asset amount for the blockchain user.
[0171] In some embodiments, the device may further include:
[0172] The second update unit is configured to update the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount if the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than the total asset amount of the blockchain user, and to vote on the target proposal in response to the voting request.
[0173] In some embodiments, the device may further include:
[0174] The second acquisition unit is used to acquire the lock-up duration corresponding to the target locked-up asset amount;
[0175] In some embodiments, the device further includes:
[0176] The unlocking unit is used to unlock the target locked asset amount after the lock-up period.
[0177] In some embodiments, the device may further include:
[0178] The third update unit is used to update the highest locked asset amount corresponding to the blockchain user based on the highest locked asset amount among the locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not yet ended.
[0179] In some embodiments, the device may further include:
[0180] The second receiving unit is used to receive an asset transfer request for the blockchain user and obtain the target amount of assets to be transferred corresponding to the asset transfer request.
[0181] A determining unit is used to determine the amount of transferable assets of a blockchain user based on the highest locked-up asset amount corresponding to the blockchain user.
[0182] The second response unit is configured to transfer the target amount of assets to the blockchain user in response to the asset transfer request if the target amount of assets to be transferred is less than the amount of assets that can be transferred.
[0183] In some embodiments, the determining unit may include:
[0184] The acquisition sub-unit is used to acquire the total assets of the blockchain user.
[0185] A sub-unit is defined to determine the amount of transferable assets based on the difference between the total amount of assets and the maximum amount of locked-up assets.
[0186] This application discloses a user asset management device. A first receiving unit 301 receives voting requests from blockchain users for target proposals. A first acquiring unit 302 acquires the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal. The highest locked asset amount is the highest locked asset amount among all proposals in which the blockchain user has participated and which have not yet concluded. A first updating unit 303 updates the highest locked asset amount corresponding to the blockchain user based on the target locked asset amount if the target locked asset amount is not less than the highest locked asset amount, and votes on the target proposal in response to the voting request. This can increase the enthusiasm of blockchain users to vote on proposals.
[0187] Accordingly, embodiments of this application also provide a computer device, which can be a server. For example... Figure 5 As shown, Figure 5This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 600 includes a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 and the memory 602 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0188] The processor 601 is the control center of the computer device 600. It connects various parts of the computer device 600 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it performs various functions of the computer device 600 and processes data, thereby monitoring the computer device 600 as a whole.
[0189] In this embodiment, the processor 601 in the computer device 600 loads the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 runs the applications stored in the memory 602 to achieve various functions:
[0190] Receive voting requests from blockchain users for a target proposal;
[0191] Obtain the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal. The highest locked asset amount is the highest locked asset amount among the locked asset amounts of all proposals that the blockchain user has participated in and has not yet ended.
[0192] If the target locked asset amount is not less than the maximum locked asset amount, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0193] In some embodiments, the method further includes:
[0194] If the target locked asset amount is less than the maximum locked asset amount, a vote will be taken on the target proposal in response to the voting request.
[0195] In some embodiments, updating the maximum locked asset amount for a blockchain user based on a target locked asset amount includes:
[0196] The target locked asset amount will be used as the new maximum locked asset amount for blockchain users.
[0197] In some embodiments, the method further includes:
[0198] If the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than the total assets of the blockchain user, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0199] In some embodiments, the method further includes:
[0200] Obtain the lock-up duration corresponding to the target locked-up asset amount;
[0201] Following the vote on the target proposal in response to the voting request, the process also includes:
[0202] After the lock-up period expires, the target amount of locked assets will be unlocked.
[0203] In some embodiments, after unlocking the target locked asset amount, the method further includes:
[0204] The highest locked asset amount for a blockchain user is updated based on the highest locked asset amount among all proposals that the blockchain user has participated in and which are not yet concluded.
[0205] In some embodiments, the method further includes:
[0206] Receive asset transfer requests from blockchain users and obtain the target amount of assets to be transferred corresponding to the asset transfer request.
[0207] The amount of transferable assets of a blockchain user is determined based on the highest amount of locked-up assets corresponding to that blockchain user.
[0208] If the target amount of assets to be transferred is less than the amount of assets that can be transferred, then in response to the asset transfer request, the target amount of assets of the blockchain user will be transferred.
[0209] In some embodiments, the amount of transferable assets of a blockchain user is determined based on the highest locked-up asset amount corresponding to the blockchain user, including:
[0210] Obtain the total assets of blockchain users;
[0211] The amount of transferable assets is determined based on the difference between the total assets and the maximum locked-up assets.
[0212] This solution deploys a token contract that sets up an asset management strategy for blockchain users participating in proposal voting. Upon receiving a voting request from a blockchain user for a target proposal, the solution obtains the maximum locked asset amount for the blockchain user and the target locked asset amount required for the target proposal. The maximum locked asset amount is the highest among the locked asset amounts for all proposals the blockchain user has participated in and which are not yet concluded. If the target locked asset amount is not less than the maximum locked asset amount, the solution updates the blockchain user's maximum locked asset amount based on the target locked asset amount and responds to the voting request by voting on the target proposal. By using the maximum locked asset amount for blockchain users participating in proposal voting as the amount of assets locked by the user, users can participate in voting on multiple proposals simultaneously, thereby increasing their enthusiasm for voting on proposals.
[0213] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0214] Optional, such as Figure 5 As shown, the computer device 600 also includes: a touch screen display 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch screen display 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607. Those skilled in the art will understand that... Figure 5 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0215] The touch display screen 603 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 603 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 601. It can also receive and execute commands from the processor 601. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 601 to determine the type of touch event. Subsequently, the processor 601 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 603 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 603 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 603 can also be used as part of the input unit 606 to achieve input functions.
[0216] The radio frequency circuit 604 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other computer devices, and to transmit and receive signals with network devices or other computer devices.
[0217] Audio circuitry 605 can be used to provide an audio interface between a user and a computer device via a speaker and a microphone. Audio circuitry 605 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 605, converted back into audio data, and then processed by processor 601 before being transmitted via radio frequency circuitry 604 to, for example, another computer device, or output to memory 602 for further processing. Audio circuitry 605 may also include an earphone jack to facilitate communication between peripheral headphones and computer devices.
[0218] The input unit 606 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
[0219] Power supply 607 is used to supply power to various components of computer device 600. Optionally, power supply 607 can be logically connected to processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 607 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0220] although Figure 5 As not shown in the diagram, computer device 600 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.
[0221] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0222] As can be seen from the above, the computer device provided in this embodiment receives a voting request from a blockchain user for a target proposal; obtains the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal, wherein the highest locked asset amount is the highest locked asset amount among the locked asset amounts corresponding to all proposals in which the blockchain user has participated and which have not yet ended; if the target locked asset amount is not less than the highest locked asset amount, the highest locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the device votes on the target proposal in response to the voting request.
[0223] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0224] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the user asset management methods provided in embodiments of this application. For example, the computer program can execute the following steps:
[0225] Receive voting requests from blockchain users for a target proposal;
[0226] Obtain the highest locked asset amount corresponding to the blockchain user and the target locked asset amount required for the target proposal. The highest locked asset amount is the highest locked asset amount among the locked asset amounts of all proposals that the blockchain user has participated in and has not yet ended.
[0227] If the target locked asset amount is not less than the maximum locked asset amount, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0228] In some embodiments, the method further includes:
[0229] If the target locked asset amount is less than the maximum locked asset amount, a vote will be taken on the target proposal in response to the voting request.
[0230] In some embodiments, updating the maximum locked asset amount for a blockchain user based on a target locked asset amount includes:
[0231] The target locked asset amount will be used as the new maximum locked asset amount for blockchain users.
[0232] In some embodiments, the method further includes:
[0233] If the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than the total assets of the blockchain user, then the maximum locked asset amount corresponding to the blockchain user is updated based on the target locked asset amount, and the target proposal is voted on in response to the voting request.
[0234] In some embodiments, the method further includes:
[0235] Obtain the lock-up duration corresponding to the target locked-up asset amount;
[0236] Following the vote on the target proposal in response to the voting request, the process also includes:
[0237] After the lock-up period expires, the target amount of locked assets will be unlocked.
[0238] In some embodiments, after unlocking the target locked asset amount, the method further includes:
[0239] The highest locked asset amount for a blockchain user is updated based on the highest locked asset amount among all proposals that the blockchain user has participated in and which are not yet concluded.
[0240] In some embodiments, the method further includes:
[0241] Receive asset transfer requests from blockchain users and obtain the target amount of assets to be transferred corresponding to the asset transfer request.
[0242] The amount of transferable assets of a blockchain user is determined based on the highest amount of locked-up assets corresponding to that blockchain user.
[0243] If the target amount of assets to be transferred is less than the amount of assets that can be transferred, then in response to the asset transfer request, the target amount of assets of the blockchain user will be transferred.
[0244] In some embodiments, the amount of transferable assets of a blockchain user is determined based on the highest locked-up asset amount corresponding to the blockchain user, including:
[0245] Obtain the total assets of blockchain users;
[0246] The amount of transferable assets is determined based on the difference between the total assets and the maximum locked-up assets.
[0247] This solution deploys a token contract that sets up an asset management strategy for blockchain users participating in proposal voting. Upon receiving a voting request from a blockchain user for a target proposal, the solution obtains the maximum locked asset amount for the blockchain user and the target locked asset amount required for the target proposal. The maximum locked asset amount is the highest among the locked asset amounts for all proposals the blockchain user has participated in and which are not yet concluded. If the target locked asset amount is not less than the maximum locked asset amount, the solution updates the blockchain user's maximum locked asset amount based on the target locked asset amount and responds to the voting request by voting on the target proposal. By using the maximum locked asset amount for blockchain users participating in proposal voting as the amount of assets locked by the user, users can participate in voting on multiple proposals simultaneously, thereby increasing their enthusiasm for voting on proposals.
[0248] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0249] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0250] Since the computer program stored in the storage medium can execute the steps of any of the user asset management methods provided in the embodiments of this application, the beneficial effects that any of the user asset management methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0251] The foregoing has provided a detailed description of a user asset management method, apparatus, storage medium, and computer device provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A user asset management method characterized by comprising: The method is applied to a blockchain on which an organization contract is deployed, the organization contract is configured to give a blockchain user a proposal decision right, and the method comprises the following steps: receiving a voting request of a blockchain user for a target proposal; obtaining a maximum locked asset amount corresponding to the blockchain user and a target locked asset amount required by the target proposal, the maximum locked asset amount being the maximum locked asset amount among locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not ended; if the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than a total asset amount of the blockchain user, updating the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount, and voting for the target proposal in response to the voting request.
2. The method of claim 1, wherein, The method further comprises: if the target locked asset amount is less than the maximum locked asset amount, voting for the target proposal in response to the voting request.
3. The method of claim 1, wherein, The updating of the maximum locked asset amount corresponding to the blockchain user based on the target locked asset amount comprises: taking the target locked asset amount as a new maximum locked asset amount of the blockchain user.
4. The method of claim 1, wherein, The method further comprises: obtaining a locking duration corresponding to the target locked asset amount; after the voting for the target proposal in response to the voting request, the method further comprises: after the locking duration, unlocking the target locked asset amount.
5. The method of claim 4, wherein, After the unlocking of the target locked asset amount, the method further comprises: updating the maximum locked asset amount corresponding to the blockchain user based on the maximum locked asset amount among locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not ended.
6. The method of claim 1, wherein, The method further comprises: receiving an asset transfer request for the blockchain user, and obtaining a target transfer asset amount corresponding to the asset transfer request; determining a transferable asset amount of the blockchain user according to the maximum locked asset amount corresponding to the blockchain user; if the target transfer asset amount is less than the transferable asset amount, transferring the target transfer asset amount of the blockchain user in response to the asset transfer request.
7. The method of claim 6, wherein, The determining of the transferable asset amount of the blockchain user according to the maximum locked asset amount corresponding to the blockchain user comprises: obtaining a total asset amount of the blockchain user; determining the transferable asset amount according to a difference between the total asset amount and the maximum locked asset amount.
8. A user asset management apparatus characterized by comprising: The device is applied to a blockchain on which an organization contract is deployed, the organization contract is configured to give a blockchain user a proposal decision right, and the device comprises the following steps: a first receiving unit configured to receive a voting request of a blockchain user for a target proposal; a first obtaining unit configured to obtain a maximum locked asset amount corresponding to the blockchain user and a target locked asset amount required by the target proposal, the maximum locked asset amount being the maximum locked asset amount among locked asset amounts corresponding to each proposal that the blockchain user has participated in and has not ended; The first updating unit is configured to, if the target locked asset amount is not less than the maximum locked asset amount and the target locked asset amount is not greater than the total asset amount of the user of the blockchain, update the maximum locked asset amount corresponding to the user of the blockchain based on the target locked asset amount, and vote for the target proposal in response to the voting request.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein, The processor implements the user asset management method of any one of claims 1 to 7 when executing the program.
10. A storage medium, characterized by The storage medium stores a plurality of instructions adapted to be loaded by the processor to execute the user asset management method of any one of claims 1 to 7.
Citation Information
Patent Citations
Gas-free cost voting method for a block chain
CN109584054A
Decomposition and synthesis method based on block chain technology
CN113159950A