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

Cavey/lif #215

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

Cavey/lif #215

wants to merge 26 commits into from

Commits on May 22, 2024

  1. feat: Liquid Insurance Funds

    This commit introduces a new feature to marginfi, an ability to create
    and interact with a liquid insurance pool that is integrated with a
    bank's insurance vault. Each liquid insurance pool offers a mint token
    which represents shares in the pool. Users can deposit and withdraw from
    the pool.
    
    Signed-off-by: Denton X <[email protected]>
    exdx committed May 22, 2024
    Configuration menu
    Copy the full SHA
    b35899d View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. fix: Remove marginfi account pubkey

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 23, 2024
    Configuration menu
    Copy the full SHA
    e072543 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66e1dd4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47308c7 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. fix: Remove lif token mint functionality entirely

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 24, 2024
    Configuration menu
    Copy the full SHA
    e8ec7ec View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. fix: Remove unnecessary fields from lif

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 28, 2024
    Configuration menu
    Copy the full SHA
    536ad42 View commit details
    Browse the repository at this point in the history
  2. fix: Use lif seed in state; remove other mint seeds

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 28, 2024
    Configuration menu
    Copy the full SHA
    450546c View commit details
    Browse the repository at this point in the history
  3. fix: Use shares explicitly when depositing, add withdraw params to

    account data
    
    Signed-off-by: Denton X <[email protected]>
    exdx committed May 28, 2024
    Configuration menu
    Copy the full SHA
    48b4b71 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. fix: Remove extra signers; fix withdrawals to use amount instead of

    shares
    
    Signed-off-by: Denton X <[email protected]>
    exdx committed May 29, 2024
    Configuration menu
    Copy the full SHA
    062391b View commit details
    Browse the repository at this point in the history
  2. fix: Clean up withdraw to use amount instead of shares

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 29, 2024
    Configuration menu
    Copy the full SHA
    9da4479 View commit details
    Browse the repository at this point in the history
  3. fix: Use anchor close macro on withdraw

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 29, 2024
    Configuration menu
    Copy the full SHA
    06ce16a View commit details
    Browse the repository at this point in the history
  4. fix: Return Result<> when creating a fund

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 29, 2024
    Configuration menu
    Copy the full SHA
    da2861f View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. wip: Internal accounting model

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 30, 2024
    Configuration menu
    Copy the full SHA
    a4e0323 View commit details
    Browse the repository at this point in the history
  2. fix: Use correct deposit seeds

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 30, 2024
    Configuration menu
    Copy the full SHA
    6f80884 View commit details
    Browse the repository at this point in the history
  3. feat: Add haircut_shares to reprice lif shares in case of bankruptcy or

    withdraws
    
    Signed-off-by: Denton X <[email protected]>
    exdx committed May 30, 2024
    Configuration menu
    Copy the full SHA
    a8f5dab View commit details
    Browse the repository at this point in the history
  4. fix: Move InsuranceFundAccount to state

    Signed-off-by: Denton X <[email protected]>
    exdx committed May 30, 2024
    Configuration menu
    Copy the full SHA
    3477229 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Configuration menu
    Copy the full SHA
    0b50360 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

  1. feat: Add user deposit accounting

    Signed-off-by: Denton X <[email protected]>
    exdx committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    a2c90ec View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. wip: Create withdraw address

    Signed-off-by: Denton X <[email protected]>
    exdx committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    5b18378 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Configuration menu
    Copy the full SHA
    876e8ed View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Configuration menu
    Copy the full SHA
    7af12e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e82b743 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf7c5f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b7b793e View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    d33b8d1 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    6e9d575 View commit details
    Browse the repository at this point in the history