# HIP-9: Institute Last Out, First In Redelegations for Staking

**URL:** <https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723>\
**Category:** Governance\
**Created:** [July 9, 2021, 5:11pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723 "2021-07-09T17:11:54Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnacksFighter](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@SnacksFighter](https://talk.harmony.one/u/SnacksFighter)\
**Post date:** [July 9, 2021, 5:11pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/1 "2021-07-09T17:11:54Z")

</div>

TLDR:  
-Current staking process is set up for First Out, First In when undelegating and redelegating One to stake with Validators.  
-This creates delays if you undelegate One with the intent of removing them from the staking portal, and have undelegated multiple times over multiple epochs, but need to redelegate before the 7 epoch wait time is over.  
-New proposal to reverse this, so last out is the first in for redelegation of One.

Example:  
Current set up:

1. Undelegate 10k One on epoch 625 with intent to wait the 7 epochs and use the One for farming.
2. Undelegate 10k more One on epoch 627 with intent to restake with a different validator for any reason.
3. Redelegate 10K one to a different Validator on epoch 628.  
Result: The system redelegates the 10k from epoch 625, leaving you with 6 epochs remaining to receive your 10K one instead of 4 epochs remaining.

Proposed Last Out / First In Example:

1. Undelegate 10k One on epoch 625 with intent to wait the 7 epochs and use the One for farming.
2. Undelegate 10k more One on epoch 627 with intent to restake with a different validator for any reason.
3. Redelegate 10K one to a different Validator on epoch 628.  
Result: The system redelegates the 10k one from epoch 627, leaving you with 4 epochs remaining. Last Out / First In

This has been a problem for me multiple times. I think it is fair to allow people to redelegate the Last Out coins and preserve their undelegation 7 epoch wait timeline instead of starting over.

---

<div class="post-metadata">

**Author:** ![WellnessOne](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/wellnessone/32/2667_2.png) [@WellnessOne](https://talk.harmony.one/u/WellnessOne)\
**Post date:** [July 9, 2021, 5:52pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/2 "2021-07-09T17:52:43Z")

</div>

I think this a great idea. Good quality of life improvement!

---

<div class="post-metadata">

**Author:** ![mohanarvindk](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/mohanarvindk/32/12063_2.png) [@mohanarvindk](https://talk.harmony.one/u/mohanarvindk)\
**Post date:** [July 10, 2021, 5:29am UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/3 "2021-07-10T05:29:09Z")

</div>

Need this feature, it will improve compounding gains 😀

---

<div class="post-metadata">

**Author:** ![Jimbo\_JCR.one](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/jimbo_jcr.one/32/2008_2.png) [@Jimbo\_JCR.one](https://talk.harmony.one/u/Jimbo_JCR.one)\
**Post date:** [July 10, 2021, 1:14pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/4 "2021-07-10T13:14:23Z")

</div>

I like the idea. And it doesn’t appear it would effect slashing.

---

<div class="post-metadata">

**Author:** ![dfgelato](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dfgelato](https://talk.harmony.one/u/dfgelato)\
**Post date:** [July 10, 2021, 1:29pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/5 "2021-07-10T13:29:22Z")

</div>

I think this is an excellent idea and it should be implemented. I’m sure that it perfectly embodies the true purpose of every delegator that is undelegating a certain amount

---

<div class="post-metadata">

**Author:** ![Nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Nico](https://talk.harmony.one/u/Nico)\
**Post date:** [July 10, 2021, 4:27pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/6 "2021-07-10T16:27:10Z")

</div>

Very good idea. To be implemented 👌

---

<div class="post-metadata">

**Author:** ![Validity](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/validity/32/11711_2.png) [@Validity](https://talk.harmony.one/u/Validity)\
**Post date:** [July 11, 2021, 4:54am UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/7 "2021-07-11T04:54:40Z")

</div>

Interesting idea - and I totally get your use case.

In terms of avoiding “bad actors”, wouldn’t that allow someone to:

1. Undelegate 100 million ONE on epoch 625 “with intent to wait 7 epochs”
2. Undelegate 100 million more ONE on epoch 627 w/ 30 seconds remaining
3. Redelegate 100 million 30 seconds later in a potentially malicious manner?

Playing devil’s advocate and trying to learn more. It may be that the proposal is totally fine. Just worried about potential stability and large amounts of money moving all over the place in small amounts of time for malicious reasons.

---

<div class="post-metadata">

**Author:** ![Cook8523](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/cook8523/32/901_2.png) [@Cook8523](https://talk.harmony.one/u/Cook8523)\
**Post date:** [July 11, 2021, 2:02pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/8 "2021-07-11T14:02:25Z")

</div>

I think we should just go for the full monty and take the undelegation period back to 1 epoch. In the beginning it was only 1 epoch and it was awesome. Liquidity is King!

---

<div class="post-metadata">

**Author:** ![Loud-Cloud-Dragon](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/loud-cloud-dragon/32/703_2.png) [@Loud-Cloud-Dragon](https://talk.harmony.one/u/Loud-Cloud-Dragon)\
**Post date:** [July 16, 2021, 11:39am UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/9 "2021-07-16T11:39:14Z")

</div>

Sounds great to me, I was not aware this had become an issue.

---

<div class="post-metadata">

**Author:** ![SnacksFighter](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@SnacksFighter](https://talk.harmony.one/u/SnacksFighter)\
**Post date:** [July 16, 2021, 6:57pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/10 "2021-07-16T18:57:00Z")

</div>

In your example, the system would redelegate the 100 million one from epoch 627 on epoch 628, preserving the epoch 625 undelegation timeline. That is the entire intent of this.

---

<div class="post-metadata">

**Author:** ![L3M0R](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/l3m0r/32/1299_2.png) [@L3M0R](https://talk.harmony.one/u/L3M0R)\
**Post date:** [August 8, 2021, 2:24pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/11 "2021-08-08T14:24:08Z")

</div>

I’m in favour of having this implemented. I for 6 days have been waiting for undelegating small portion of my holdings. If I was aware of this issue, I would have stopped myself from redelegating back to a new delegator. I was only 2 epochs away from getting my unstakes back.

But since I was unaware of this issue, I did re-delegate to a new validator, which resulted in another 7 epochs extension of undelegation of the same amount of holdings.

---

<div class="post-metadata">

**Author:** ![Maffaz](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/maffaz/32/646_2.png) [@Maffaz](https://talk.harmony.one/u/Maffaz)\
**Post date:** [September 5, 2021, 7:36pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/12 "2021-09-05T19:36:59Z")

</div>

@sophoah @lij @rongjian Is this something that is feasible for the protocol?

@SnacksFighter is this something that you still wish to put to a vote?

---

<div class="post-metadata">

**Author:** ![pape77](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/pape77/32/1102_2.png) [@pape77](https://talk.harmony.one/u/pape77)\
**Post date:** [September 11, 2021, 10:48pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/13 "2021-09-11T22:48:28Z")

</div>

This idea makes a lot of sense, love it! Hope it gets the attention it deserves 🙂

---

<div class="post-metadata">

**Author:** ![Maffaz](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/maffaz/32/646_2.png) [@Maffaz](https://talk.harmony.one/u/Maffaz)\
**Post date:** [October 4, 2021, 7:52am UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/14 "2021-10-04T07:52:17Z")

</div>

@sophoah @lij @rongjian Is this something that is feasible for the protocol?

@SnacksFighter is this something that you still wish to put to a vote?

Any Update so we can potential put this to a community Vote?

---

<div class="post-metadata">

**Author:** ![sophoah](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/sophoah/32/249_2.png) [@sophoah](https://talk.harmony.one/u/sophoah)\
**Post date:** [October 4, 2021, 2:15pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/15 "2021-10-04T14:15:25Z")

</div>

> [@Validity](#):
>
> resting idea - and I totally get your use case.
> 
> In terms of avoiding “bad actors”, wouldn’t that allow someone to:
> 
> 1. Undelegate 100 million ONE on epoch 625 “with intent to wait 7 epochs”
> 2. Undelegate 100 million more ONE on epoch 627 w/ 30 seconds remaining
> 3. Redelegate 100 million 30 seconds later in a potentially malicious manner?
> 
> Playing devil’s advocate and trying to learn more. It may be that the proposal is totally fine. Just worried about potential stability and large amounts of money moving a

I like that one 🙂 and yeah, I believe everything is possible, this would just need proper implementation and testing on the protocol side.

@rongjian any comments on that one ? we can create a bounty so to see if any community dev can have a look ? what do you think ?

---

<div class="post-metadata">

**Author:** ![rongjian](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/rongjian/32/43_2.png) [@rongjian](https://talk.harmony.one/u/rongjian)\
**Post date:** [October 4, 2021, 5:52pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/16 "2021-10-04T17:52:27Z")

</div>

Sounds like a good proposal. We can go for a community voting on this. And the implementation is straightforward.

---

<div class="post-metadata">

**Author:** ![Maffaz](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/maffaz/32/646_2.png) [@Maffaz](https://talk.harmony.one/u/Maffaz)\
**Post date:** [October 5, 2021, 6:43am UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/17 "2021-10-05T06:43:37Z")

</div>

Thanks for the reply.

This is great news.

I will arrange a vote!

---

<div class="post-metadata">

**Author:** ![SnacksFighter](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@SnacksFighter](https://talk.harmony.one/u/SnacksFighter)\
**Post date:** [October 10, 2021, 9:18pm UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/18 "2021-10-10T21:18:52Z")

</div>

Perfect, looking forward to it!

---

<div class="post-metadata">

**Author:** ![ben2k\_Stakeridoo](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/ben2k_stakeridoo/32/1041_2.png) [@ben2k\_Stakeridoo](https://talk.harmony.one/u/ben2k_Stakeridoo)\
**Post date:** [October 11, 2021, 11:01am UTC](https://talk.harmony.one/t/hip-9-institute-last-out-first-in-redelegations-for-staking/1723/19 "2021-10-11T11:01:00Z")

</div>

2 Days left on voting:  
[https://gov.harmony.one/#/dao-mainnet/proposal/QmTy415weDCQd88QBaBYBSW6Ux75JiraMuyjwtSMEaEJBQ](https://gov.harmony.one/#/dao-mainnet/proposal/QmTy415weDCQd88QBaBYBSW6Ux75JiraMuyjwtSMEaEJBQ)

@Maffaz did a list with those who have not voted so far. Can we bring them to vote? This is a great HIP that helps very much the delegator.

[Validators not voted](https://docs.google.com/spreadsheets/d/1BaO07deE56uW9Jxv3Iv2YLHNNns2INJHDV4glvlqMWQ/edit#gid=0)
