Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade
X2EarnApps
to Version 3,XAllocationVoting
to version4
,XAllocationPool
to version4
, andX2EarnRewardsPool
to version5
Added new endorsement cooldown feature to
X2EarnApps
, in which vechain nodes enter a cooldown period after endorsing an XApp.When going live with this feature on mainnet the cooldown period will be 1 round. i.e if a node endorses and app in round 25 they will not be able to change their endorsement till round 26.
Updated
XAllocationVoting
,XAllocationPool
andX2EarnRewardsPool
to use version3
ofX2EarnApps
interface.Changes 🚀
X2EarnApps.sol
to version3
XAllocationVoting.sol
to version4
XAllocationPool.sol
to version4
X2EarnRewardsPool.sol
to version5
Storage Changes 📦
X2EarnApps
:_endorsementRound
to store latest round Vechain Node endorsed an XApp._cooldownPeriod
to store cooldown period in terms of rounds._xAllocationVotingGovernor
to storeXAllocationVoting
address.New Features 🚀
X2EarnApps
:checkCooldown()
to check if a vechain node is currently in cooldown period, this is a public function that is also used insideendorseApp()
andunendorseApp()
.getXAllocationVotingGovernor()
to get the address of theXAllocationVoting
contract.cooldownPeriod()
to get the cooldown period in rounds.setXAllocationVotingGovernor()
to setXAllocationVoting
address.updateCooldownPeriod()
to update cooldown period.