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

Merge investor into TOCC #525

Merged
merged 30 commits into from
Dec 1, 2021
Merged

Merge investor into TOCC #525

merged 30 commits into from
Dec 1, 2021

Commits on Jun 28, 2021

  1. Add skeleton of Tinlake investor pallet

    Branan Riley committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    27ab63c View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. Remove example content from investor-pool pallet

    Branan Riley committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    46fd1ba View commit details
    Browse the repository at this point in the history
  2. Switch to Perquintill for interest calculation

    Branan Riley committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    312f842 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Add tokens and initial supply/redeem order support

    Branan Riley committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    a6e72d4 View commit details
    Browse the repository at this point in the history
  2. Give the pool a direct parameter for the CurrencyId

    Branan Riley committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    696edaa View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Add beginning of epoch closing logic

    Branan Riley committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    a0b74f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fcfc674 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dcb4e94 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Epoch close tweaks

    Branan Riley committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    fc91d54 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. Merge remote-tracking branch 'upstream/investor-hacking' into investo…

    …r-hacking
    Branan Riley committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    087a9a2 View commit details
    Browse the repository at this point in the history
  2. Build the epoch execution skeleton

    This expands `close_epoch` to have most of the top-level epoch
    closing logic, with most of the meat still stubbed out.
    Branan Riley committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    b645c71 View commit details
    Browse the repository at this point in the history
  3. Improve errors + events for investor pallet

    Branan Riley committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    5f629ac View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Unify pool + reserve logic; remove per-tranche accounts

    Branan Riley committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    0999255 View commit details
    Browse the repository at this point in the history
  2. Rename deposit/payout extrinsics

    These extrinsics are really an interface to do fake borrowing/payback
    until we have a borrower side to interact with. They are renamed to
    indicate now that that is what they do.
    Branan Riley committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    18ddce0 View commit details
    Browse the repository at this point in the history
  3. Add doc comments to some less-obvious pieces

    Branan Riley committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    fae369a View commit details
    Browse the repository at this point in the history
  4. Be more consistent in use of pool_id/tranche_id

    This removes some confusing code where the terms `pool` or `tranche`
    were being used to refer to the id in some cases but the struct data
    in others. IDs are now always delimited as such
    Branan Riley committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    9ce1ab9 View commit details
    Browse the repository at this point in the history
  5. Remove unused traits

    Branan Riley committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    ef1537e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9f77060 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2021

  1. Add Epoch Validation (centrifuge#471)

    * Add Reserve
    
    * wip: checkpoint epoch validation
    
    * checkpoint - sub ratio validation
    
    * checkpoint - return errors + simplify balance to perquintil conversion
    
    * address comments 1
    
    * address comments 2
    
    * moved currency/tranchetoken as primitive crate
    mikiquantum committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    2cb0169 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. Configuration menu
    Copy the full SHA
    fb6c8eb View commit details
    Browse the repository at this point in the history
  2. fix build

    mikiquantum committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    424de85 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Configuration menu
    Copy the full SHA
    566c022 View commit details
    Browse the repository at this point in the history
  2. Integrates Crowdloan Pallets into Altair (centrifuge#493)

    * Integrates crowdloan pallets to altait
    
    * Pump rt-version 1005, minDep democ 1000 AIR
    mustermeiszer committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    d9d8454 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. Fix: Foreign claims and inhance error of validate unsigned (centrifug…

    …e#474)
    
    * Changed validate-unsigned
    
    The changes to the validate unsigned are here to reflect more
    detailed error messages at failure with the costum error
    instead of the misleading 'BadProof' return value.
    
    Furthermore, this fixes an issue, where somebody could have a
    signature of any parachain-relay-chain account and then use
    a proof of any other relay-chain contribution to gain those
    rewards.
    
    * Enable claim_reward calls
    
    * Remove indicator for claim failures
    mustermeiszer committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    a99a449 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. Merge branch 'parachain' into investor-hacking

    Branan Riley committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    5913f6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c16c78f View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Epoch execution (centrifuge#485)

    * Epoch execution phase 1
    
    This is the beginning of epoch execution. It updates tranche state and
    stores the execution results, but since token pricing is not yet
    implemented it cannot do rebalancing or other bits like that.
    
    * Epoch close pricing calculation
    
    This now calculates a price (including dripping
    interest) for the tranches at epoch close.
    
    There are other locations where dripping interest needs to occur, to
    come in further commits.
    
    * Store additional state at epoch close
    
    In addition to the per-tranche supply/redeem targets for an epoch, we
    now also store the nav, reserve, per-tranche price, and per-tranche
    total value at the time of close.
    
    * Update epoch validation tests for new epoch storage model
    
    * Implement tranche rebalancing during epoch execution
    
    This also includes a new `fake_nav` to make testing easier
    
    * Track tranche debt/balance amounts in borrow/repay fns
    
    * Account for updated tranche value in epoch validity
    
    * Fixes for epoch execution / rebalancing
    
    * Epoch execution testing
    
    * Use a less-bad pow() impl for calculating interest
    
    * Avoid rounding issues when round-tripping between currencies
    branan committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    b6f53b3 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. Merge branch 'investor-hacking' into tocc

    Branan Riley committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    ef47790 View commit details
    Browse the repository at this point in the history
  2. Use investor pallet as reserve source for loan pallet

    Branan Riley committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    828dc60 View commit details
    Browse the repository at this point in the history
  3. Use Loan pallet as NAV source for investor pool

    Branan Riley committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    5b09f5e View commit details
    Browse the repository at this point in the history