Skip to content

linear-protocol/validator-voting-contract

Repository files navigation

NEAR Validator Voting

The purpose of this contract is for validators to vote on any specific proposal. Validators can call vote function to vote for yes or no with the staked amount on the validator. If there are more than 2/3 of the stake at any given moment voting for yes, the voting is done. After the voting is finished or the voting deadline has passed, no one can further modify the contract. The voting contract is recommended to be pinged every epoch to make sure the latest stake is updated in the contract.

Build

Install cargo-near and run:

make

Test

make test

Deploy

cargo near deploy build-reproducible-wasm <account-id>

Tools

About

NEAR Validator Voting Contract

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •