Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vault and Core Upgrade #73

Merged
merged 56 commits into from
May 18, 2024
Merged

Vault and Core Upgrade #73

merged 56 commits into from
May 18, 2024

Conversation

junkim012
Copy link
Collaborator

@junkim012 junkim012 commented Apr 15, 2024

Merges PR #69

This PR includes three different changes.

1. Ion Lending Vault

Users who want exposure to multiple markets on Ion can deposit into a vault managed by a third party. This third party can receive deposits and rebalance all deposits across multiple pairs. For example, if users deposit 100 wstETH into the vault, the vault manager can distribute the asset by lending 20 wstETH into the weETH/wstETH market, 50 wstETH into the rsETH/wstETH market, and 30 wstETH into the rswETH market.

2. IonPool & RewardToken Upgrade

  1. Introducing transferrability of the RewardToken following ERC20 interface.
  2. Changing the RewardToken from the rebasing token to a non-rebasing token.
    • This change involves changing the balanceOf function, renaming functions such that the amount of normalized shares is exposed as the balance of the token. This change was made such that we do not have to create a separate 4626 wrapper for the rebasing lender receipt token.

3. Ion Lens

A lens contract for view functions and exposing the storage of IonPool used in upgradeability.
1. This change is included in the /src files changed in the PR, but it only deals with view functions and does not have any impact on the protocol.

Copy link

openzeppelin-code bot commented Apr 15, 2024

Vault and Core Upgrade

Generated at commit: 0f78d89a16850cb880f0348bcc3d272aa0c2ee77

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
12
38
54
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@junkim012 junkim012 marked this pull request as ready for review April 28, 2024 07:49
@junkim012 junkim012 requested a review from HrikB April 28, 2024 07:50
@junkim012 junkim012 changed the base branch from hrikb/transferability to master April 29, 2024 06:13
@junkim012 junkim012 changed the title Managed Lending Vault Vault and Core Upgrade Apr 29, 2024
junkim012 added 24 commits May 12, 2024 04:05
…upply scaled by distribution factor truncates to zero
…ssets and shares, the factory enforces initial deposit into the vault at deployment time
HrikB
HrikB previously requested changes May 17, 2024
Copy link
Contributor

@HrikB HrikB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a merge conflict resolution here.

src/vault/VaultFactory.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
src/vault/Vault.sol Outdated Show resolved Hide resolved
@junkim012 junkim012 dismissed HrikB’s stale review May 18, 2024 01:30

Reviewed and deployed!

@junkim012 junkim012 merged commit 88cc595 into master May 18, 2024
6 checks passed
@junkim012 junkim012 deleted the jun/lending-vault branch May 18, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants