GuildController
GuildController.
guild_relative_weight
(addr: address, time: uint256 = block.timestamp) -> uint256: viewGet Guild relative weight (not more than 1.0) normalized to 1e18 (e.g. 1.0 == 1e18). Inflation which will be received by it is
inflation_rate * relative_weight / 1e18
- addr: guild address
- time: Relative weight at the specified timestamp in the past or present
VRH DAO creates guild for users with guild type and guild rate. The owner must have 30000 veVRH at least. Guild can start mining at the start of next mining epoch.
owner
: guild owner create forguild_type
: guild burning gas typerate
: guild rate charge from members, between 1% to a maximum of 20%.
One guild member will vote all veVRH weight to one guild when joining guild. Otherwise, remove all veVRH weight when leaving guild. It will take effect at the start of next epoch.
refress_guild_votes
will trigger from guild contract
automatically when call user_checkpoint
. user_addr
: Member addressguild_addr
: Guild address
Last modified 1yr ago