# SIP-010 Staking logic fix to allow cliff to be equal duration

**URL:** <https://forum.sovryn.com/t/sip-010-staking-logic-fix-to-allow-cliff-to-be-equal-duration/338>\
**Category:** SIP | Sovryn Improvement Proposals\
**Created:** [March 1, 2021, 5:52pm UTC](https://forum.sovryn.com/t/sip-010-staking-logic-fix-to-allow-cliff-to-be-equal-duration/338 "2021-03-01T17:52:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TJCloak](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@TJCloak](https://forum.sovryn.com/u/TJCloak)\
**Post date:** [March 1, 2021, 5:52pm UTC](https://forum.sovryn.com/t/sip-010-staking-logic-fix-to-allow-cliff-to-be-equal-duration/338/1 "2021-03-01T17:52:15Z")

</div>

This is a technical upgrade to cover a missing edge case when the cliff equals duration. The change upgrades Staking contract thus demands approved redeploy.  
Tech details:  
PR: [staking edge case allow cliff == duration by tjcloa · Pull Request #158 · DistributedCollective/Sovryn-smart-contracts · GitHub](https://github.com/DistributedCollective/Sovryn-smart-contracts/pull/158)

---

<div class="post-metadata">

**Author:** ![exiledsurfer](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.sovryn.com/exiledsurfer/32/260_2.png) [@exiledsurfer](https://forum.sovryn.com/u/exiledsurfer)\
**Post date:** [March 2, 2021, 8:31am UTC](https://forum.sovryn.com/t/sip-010-staking-logic-fix-to-allow-cliff-to-be-equal-duration/338/2 "2021-03-02T08:31:27Z")

</div>

longer explanation:

The currently deployed staking contract’s stakeByschedule function used by the currently deployed vesting contracts only allow for staking for two six-week intervals, which means that SOV tokens from the Origin resale can not be distributed with deploying one single contract. The currently deployed staking contract would require to release 50% at one date, and the second 50% four weeks later. This would be unfair to Origin presale bidders.

Approval of SIP-010 would result in the disbursal of Origin SOV presale tokens taking place 48 hours after the conclusion of a successful vote.

@Ororo When is voting scheduled to begin?

---

<div class="post-metadata">

**Author:** ![Ororo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.sovryn.com/ororo/32/352_2.png) [@Ororo](https://forum.sovryn.com/u/Ororo)\
**Post date:** [March 2, 2021, 12:05pm UTC](https://forum.sovryn.com/t/sip-010-staking-logic-fix-to-allow-cliff-to-be-equal-duration/338/3 "2021-03-02T12:05:29Z")

</div>

within the next 30 minutes if nothing goes wrong
