0LNetworkCommunity/libra-framework

[bug] the unlocked balance amount per epoch is different inside and outside the set.

Opened this issue · 3 comments

== Phenomenon ==
The unlock speed outside the validator set is faster than when node's in the set.
The unlocked amount is 35,000/epoch fixed when it was outside the set,
but 33,000 ~ 34,000/epoch when it was in the set.
The entry fee is when a node within the validator set pays a certain portion of the epoch reward,
but I am curious as to why the unlock amount of the balance decreases or fluctuates
compared to when the node is outside the set.

== In set ==
Epoch : 29 ---> 30
Total balance : 50900062 ---> 50900079 +17
Unlocked balance : 11970826 ---> 12004141 +33315
Epoch : 30 ---> 31
Total balance : 50900079 ---> 50900095 +16
Unlocked balance : 12004141 ---> 12037540 +33399
Epoch : 31 ---> 32
Total balance : 50900095 ---> 50900111 +16
Unlocked balance : 12037540 ---> 12071018 +33478
Epoch : 32 ---> 33
Total balance : 50900111 ---> 50900118 +7
Unlocked balance : 12071018 ---> 12104566 +33548

== Outside set ==
Epoch : 34 ---> 35
Total balance : 50901505 ---> 50901505 +0
Unlocked balance : 12139566 ---> 12174566 +35000
Epoch : 35 ---> 36
Total balance : 50901505 ---> 50901505 +0
Unlocked balance : 12174566 ---> 12209566 +35000
Epoch : 36 ---> 37
Total balance : 50901504 ---> 50901504 +0
Unlocked balance : 12209565 ---> 12244565 +35000
Epoch : 37 ---> 38
Total balance : 50901504 50901504 +0
Unlocked balance : 12244565 ---> 12279565 +35000
~
So far, the amount of unlock is the same.

  • OS: [Debian 12]
  • End

@AlanYoon71 Are you sure the validator isn't paying some fee (from transactions for bidding, or entry fee, etc.).
Perhaps an what you are seeing is a "net change" because validator rewards are low in those epoch?
It would surprise me if the unlocking behavior was different.

@0o-de-lally I'm pretty sure the unlock was less than 35K when I was in the set, and the entry cost was 99.5%(?) below the epoch reward, so it didn't reduce balance because it never went over 100%. If the unlock/epoch was really fixed at 35K, I can't find what caused the unlocked balance to decrease by roughly 1.5K. 1.5K is a pretty big number, so there must be an obvious reason I'm not aware of.I'll double check when I get back into the set.

You should take a look at the Events on your account. There may be a clue there.