Skip to content

Vote Instruction in TRON smart contract #156

Closed
@taihaofu

Description

@taihaofu

Background

TRON is a DPOS blockchain and supports staking reward for all users as long as they vote for activity SRs. But assets locked in smart contract are not fully used for staking purpose. To build a fair mechanism and support DApp developers to share a better ecosystem, we need to have instructions for voting and collect related rewards in smart contract.

Implementation

Basically we need at least 2 Instructions:

  • VOTE (vote for SR)
  • WITHDRAWBALANCE (withdraw rewards)

We might need several other Instructions, such as

  • REWARDBALANCE (show vote reward amount)
  • ISWITNESS (distinguish witness address type)

Make staking reward happened in smart contract can give DApp developers more motivation to build their DApps and increase their income. I highly recommend to implement this.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions