You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in 156 and 157, TRON need to provide vote and collect SR reward mechanism for smart contract. Motivate contract developer and increase the profit for TRON ecosystem contributors. But FREEZE/VOTE system is not direct for a smart contract. This issue provide a more efficient and direct way to implement a similar functionality for smart contracts.
Implementation
Basically we need at least 2 Instructions:
STAKE (update stake and vote for a single SR)
UNSTAKE (cancel stake)
STAKE only available for single SR, and update the whole vote & account state on chain, which means smart contract will only allow single SR staking change in one transaction.
Background
As mentioned in 156 and 157, TRON need to provide vote and collect SR reward mechanism for smart contract. Motivate contract developer and increase the profit for TRON ecosystem contributors. But FREEZE/VOTE system is not direct for a smart contract. This issue provide a more efficient and direct way to implement a similar functionality for smart contracts.
Implementation
Basically we need at least 2 Instructions:
STAKE
(update stake and vote for a single SR)UNSTAKE
(cancel stake)STAKE
only available for single SR, and update the whole vote & account state on chain, which means smart contract will only allow single SR staking change in one transaction.assembly level:
stake(sr_address, trx_amount)
unstake()
The text was updated successfully, but these errors were encountered: