Giter VIP home page Giter VIP logo

arcadia-finance / arcadia-vaults Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 8.0 6.54 MB

A new DeFi primitive, Arcadia Vaults, enabling the on-chain pricing of any combination of different types of assets in one single base currency. Arcadia Vaults are non-custodial and allow its owner to actively manage the collateral contained within the Vault.

License: Other

Solidity 99.92% JavaScript 0.08%

arcadia-vaults's People

Contributors

0xkomada avatar alikonuk1 avatar j-vp avatar simluyt avatar thomas-smets avatar zekiblue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

arcadia-vaults's Issues

Missing Tests

    Following tests are still missing:

factory.sol

  • testSuccess_isVault_Negative (not a vault)
  • testRevert_setNewVaultInfo_VersionRootIsZero
  • testRevert_setNewVaultInfo_LogicAddressIsZero
  • liquidate (all tests, both happy as unhappy)

vault.sol

  • testRevert_initialize_InvalidVersion
  • testRevert_openTrustedMarginAccount_OpeningAccountReverted
  • testSucces_openTrustedMarginAccount
  • testRevert_closeTrustedMarginAccount_NotSet
  • testRevert_closeTrustedMarginAccount_NonZeroOpenPosition
  • testSuccess_closeTrustedMarginAccount_CloseSetTrustedMarginAccount
  • increaseMarginPosition (all tests, both happy as unhappy)
  • decreaseMarginPosition (all tests, both happy as unhappy)
  • getCollateralValue (all tests, both happy as unhappy)
  • testRevert_liquidateVault_VaultIsHealthy
  • testRevert_liquidateVault_FailedToStartAuction

I propose that we create separate ticket and already merge these

Originally posted by @Thomas-Smets in #146 (comment)

โœจ Vault Metadata

Shouldn't the vault/factory have its metadata updated after being liquidated?

Originally posted by @j-vp in #39 (comment)

Next to initial Issue, the metadata (tokenURI) should be worked out as separate feature.

Liquidator unhappy flows

test for the unhappy flows of the liquidator

  • LQ_BV: Debt repaid
  • "LQ_BV: Not for sale"
  • double claims
  • claims not available yet
  • claims when reserve fund is empty

different paths with and without surplus

Originally posted by @Thomas-Smets in #26 (comment)

Gas optimize getValue calls for ERC4626SubRegistry

Implementation is good for now but when we optimize for gas usage, we might want to avoid the extra external contract call.
We now do a .getBalance() in the vault, to get the shares. And here we jump a second time to the ERC4626 contract to convert the shares to assets.
It's a trade-off between gas usage and keeping the vault generic (don't make a difference between logic to handle ERC20 and ERC4626).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.