thor icon indicating copy to clipboard operation
thor copied to clipboard

Why I donot see the code about the VTHO ?

Open ying2025 opened this issue 5 years ago • 3 comments

Why I donot see the code about the VTHO ? It doesnot contain the VET/VTHO releationship in the code, and I donot see the VET function in the code ?

ying2025 avatar Jun 14 '19 07:06 ying2025

VTHO is internally called energy.

State presentation of energy can be found in VeChain's account model definition: https://github.com/vechain/thor/blob/master/state/account.go.

Additionally, VTHO is ERC20(VIP180) compliant. So there's a builtin contract to handle VTHO operation: https://github.com/vechain/thor/blob/master/builtin/gen/energy.sol.

qianbin avatar Jun 15 '19 17:06 qianbin

You mean that VTHO is compiled by evm in the vechain network, all its operation rely on ABI like token on ERC20 ? I also donnot find Vote by VET in your code, can you point out the position ? Thank you !

ying2025 avatar Jun 16 '19 13:06 ying2025

  1. Yes
  2. Code about voting can be found at https://github.com/vechain/thor/blob/master/builtin/gen/executor.sol. It's steering committee's voting contract. It's pluggable for community voting contracts.

qianbin avatar Jun 16 '19 15:06 qianbin