Skip to content

Conversation

larry0x
Copy link
Contributor

@larry0x larry0x commented Jul 28, 2023

  1. Extract interest rate-related logics in mars-red-bank to a mars-interest-rate library
  2. Make Red Bank's Market query to return Option<Market>; None if there no market is found for the given denom
  3. Add a TotalDeposit query to mars-params that computes the total amount of a denom deposited across Red Bank and Rover. NOTE: we only account for spot holding; we don't consider LP tokens or vaults, which we have concluded as infeasible after discussions.
  4. Modify Red Bank's deposit function to assert deposit cap is not exceeded.

@larry0x larry0x marked this pull request as ready for review July 29, 2023 15:46
@piobab piobab requested review from brimigs and piobab July 31, 2023 05:50
Copy link
Collaborator

@piobab piobab left a comment

Choose a reason for hiding this comment

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

LGTM. Pushed fixes for tests and build.

larry0x and others added 8 commits August 1, 2023 22:46
Move tests from base to osmosis

Implement IbcTransferMsg abstraction

Implement mars-rewards-collector-neutron

Add neutron config to update msg.

Disable github pipeline.
* Add account_id for rover deposit rewards.

* Use user addr and account id as compound key.

* Apply comments.
@larry0x larry0x force-pushed the shared-deposit-cap-2 branch from c43f057 to 8082f24 Compare August 1, 2023 21:57
@larry0x larry0x force-pushed the shared-deposit-cap-2 branch from 8082f24 to 591251e Compare August 1, 2023 21:59
@piobab
Copy link
Collaborator

piobab commented Aug 2, 2023

Moved deposit_cap outside of RedBankSettings.

@piobab piobab merged commit 2388b76 into develop Aug 2, 2023
@larry0x larry0x deleted the shared-deposit-cap-2 branch August 5, 2023 15:45
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.

4 participants