# SIP-0074: Electron Smart Contracts upgrade

**URL:** <https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087>\
**Category:** Bitocracy\
**Created:** [January 29, 2024, 9:57am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087 "2024-01-29T09:57:01Z")\
**Posts on this page:** 12\
**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:** [January 29, 2024, 9:57am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/1 "2024-01-29T09:57:01Z")

</div>

Dear Sovryns,

We’re thrilled to announce that we’re in the final stretch of testing for our upcoming major smart contracts upgrade: the Electron release. This update brings a slew of bug fixes and improvements that we’re eager to share with you all:

- **Enhanced Lending:** Now, lenders can leverage their existing loan collateral to amplify their debt.
- **DLLR EIP-2612 Implementation Bug Fix:** We’ve tackled the Permit bug in DLLR by integrating the Uniswap Permit2 contract. This wrapper ensures a safe and reliable way to utilize permit functionality on any ERC-20 tokens not supporting EIP-2612, which could prove invaluable for future applications.
- **Improved Vesting Contract Logic:** We’ve revamped the Vesting contract logic to overcome a critical issue related to the block gas limit when processing over 44 checkpoints. A new function enabling partial withdrawals has been added.

Check out the draft for SIP-0074 [here](https://github.com/DistributedCollective/SIPS/blob/SIP-0074/SIP-0074.md).

SIP creation is scheduled for Thursday, February 1st, pending the outcome of our final testing phase.

Stay tuned for further updates, prepare to vote and feel free to share your thoughts and feedback!

---

<div class="post-metadata">

**Author:** ![capitalist42](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@capitalist42](https://forum.sovryn.com/u/capitalist42)\
**Post date:** [January 30, 2024, 4:02pm UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/2 "2024-01-30T16:02:22Z")

</div>

Please postpone the voting day. I want to spend some time reading the pull requests since this SIP involves a lot of contract changes.

---

<div class="post-metadata">

**Author:** ![interferenz](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@interferenz](https://forum.sovryn.com/u/interferenz)\
**Post date:** [January 31, 2024, 7:36am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/3 "2024-01-31T07:36:39Z")

</div>

I also think this update seems way to big to roll it all into one vote. Can we split it up to individual notes for each contract and discuss in detail what each update is about ,what the risks could be are what it fixes actually do.

---

<div class="post-metadata">

**Author:** ![interferenz](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@interferenz](https://forum.sovryn.com/u/interferenz)\
**Post date:** [January 31, 2024, 7:46am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/4 "2024-01-31T07:46:12Z")

</div>

There are changes to team vesting part of the vesting contract. I would like to know what’s happening there in \>plain language\< for transparency reasons.

---

<div class="post-metadata">

**Author:** ![TM1](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.sovryn.com/tm1/32/126_2.png) [@TM1](https://forum.sovryn.com/u/TM1)\
**Post date:** [January 31, 2024, 9:42am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/5 "2024-01-31T09:42:52Z")

</div>

If there are changes of a certain magnitude (and it’s not some kind of emergency fix) …just announcing a SIP and putting it to vote a few days later is very much different to the proposed procedure to which any other SIP is held against to be even considered to be voted on.

Don’t trust, verify!  
vs  
Don’t verify, trust?

---

<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:** [January 31, 2024, 10:08am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/6 "2024-01-31T10:08:46Z")

</div>

We are pushing the SIP-0074 creation back to monday, Feb 5th to provide more time to verify.  
This is a big upgrade in terms of contracts affected, but not that big in terms of changes amount.  
The SIP Draft has links to all the PRs, every contract prepared for upgrade is verified on the mainnet and listed in the PR.

---

<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:** [January 31, 2024, 10:11am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/7 "2024-01-31T10:11:33Z")

</div>

The team vesting part is just a cleanup. It has already been refactored to cancel team vesting directly from the Staking contract quite a while ago and now we are removing superfluous legacy code.

---

<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:** [January 31, 2024, 10:16am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/8 "2024-01-31T10:16:17Z")

</div>

I understand this impression, but the change volume is not that dramatic. This is just different repositories and we are aggregating the upgrades into one SIP to clean up our table to throw efforts into the next stage activities: develop a new StakingRewards incentives contract, prepare for expansion to other networks and for the future BitcoinOS contracts deployment.  
If you take a closer look, each upgrade separately is really a small change.

---

<div class="post-metadata">

**Author:** ![capitalist42](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@capitalist42](https://forum.sovryn.com/u/capitalist42)\
**Post date:** [January 31, 2024, 3:52pm UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/10 "2024-01-31T15:52:44Z")

</div>

Are all related code changes deployed to rsk testnet?

> **[Sovryn - DeFi for bitcoin](https://test.sovryn.app/)**
>
> 0% interest loans with Sovryn's Zero protocol. Borrow ZUSD or DLLR against your Bitcoin in a fully decentralized system. Increase your earning potential today.

---

<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:** [January 31, 2024, 7:23pm UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/11 "2024-01-31T19:23:22Z")

</div>

Yes. Actual deployment .json objects include addresses.

**TESTNET**

VestingLogic, VestingFactory, LoanOpenings:

> <https://github.com/DistributedCollective/Sovryn-smart-contracts/tree/SOV-3613-Electron-release/deployment/deployments/rskSovrynTestnet>
>
> //github.com/DistributedCollective/Sovryn-smart-contracts/tree/SOV-3613-Electron-release/deployment/deployments/rskSovrynTestnet

Zero contracts:

> <https://github.com/DistributedCollective/zero-contracts/tree/feat/permit2/deployment/deployments/rskSovrynTestnet>
>
> //github.com/DistributedCollective/zero-contracts/tree/feat/permit2/deployment/deployments/rskSovrynTestnet

Mynt contracts:

> <https://github.com/DistributedCollective/mynt/tree/feat/permit2/deployment/deployments/rskSovrynTestnet>
>
> //github.com/DistributedCollective/mynt/tree/feat/permit2/deployment/deployments/rskSovrynTestnet

---

<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:** [February 5, 2024, 1:59pm UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/12 "2024-02-05T13:59:26Z")

</div>

Dear Sovryn owners,

The SIP-0074 is created.  
Please use you voting power: [Sovryn - DeFi for bitcoin](https://sovryn.app/bitocracy/0x6496df39d000478a7a7352c01e0e713835051ccd-41)

Thank you!

---

<div class="post-metadata">

**Author:** ![interferenz](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@interferenz](https://forum.sovryn.com/u/interferenz)\
**Post date:** [February 6, 2024, 7:24am UTC](https://forum.sovryn.com/t/sip-0074-electron-smart-contracts-upgrade/3087/13 "2024-02-06T07:24:15Z")

</div>

thank you tyron for explaining it all sorry for the late reply. You are doing a wonderful job!
