Git Product home page Git Product logo

money-market-contracts's People

Contributors

csanti avatar dokwon avatar evanorti avatar ilovebusinessdevelopment avatar jeury301 avatar msntcs avatar r-amiri avatar ryanology045 avatar yun-yeo 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

Watchers

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

money-market-contracts's Issues

[Bug] Overflow in market contract

Problem Definition

In market contract, we keep total liabilities and total reserves as Decimal to keep more accurate interest information.
It causes the arithmetic overflow problem when we deposit huge stable amount.

Proposal

Use Decimal256!

[FEATURE] Contract address Problem

  1. I cloned the money market contracts and found one problem. (cloned contracts address: terra15dzu8daqh5shdda6w79vl4hkw73fzrhzfhr7fe)
    Once I deposit the UST to my own cloned money market contracts, then this contract deposits 100 Token from terra1yemu0kt0sgkpa8gghr8paqxdeup0ucr430gph0.
    https://finder.terra.money/testnet/address/terra1yemu0kt0sgkpa8gghr8paqxdeup0ucr430gph0
    image

I'd like to know this contract(terra1yemu0kt0sgkpa8gghr8paqxdeup0ucr430gph0) is from where?

the above image is from the anchor money market contract.
image

  • on the original money market contract:
    once I deposit 100USD, mint 87aUST.
  • on the cloned money market contract:
    once I deposit 100USD, mint 100Token of terra1yemu0kt0sgkpa8gghr8paqxdeup0ucr430gph0.

my wallet address: terra14g430dz4gnv3g4w449fadcj22cvapcj860nsz2
my cloned money market contract address: terra15dzu8daqh5shdda6w79vl4hkw73fzrhzfhr7fe

Thank you.

Anchor Money Market on Bombay

Saw that you guys are hard at work with the contracts, great job! Can see that many things are still in progress.

We are thinking of doing some integration testing with Anchor money market. Was wondering is there already a deployed version on bombay-10? Will the contract be the same address as the one mentioned on your docs?

Outdated moneymarket rust crate

Using moneymarket = "0.1.0" rust crates various structs differ from deployed Anchor contract.

https://docs.anchorprotocol.com/smart-contracts/money-market/market#configresponse

in rust crate

  #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
  pub struct ConfigResponse {
      pub owner_addr: HumanAddr,
      pub aterra_contract: HumanAddr,
      pub interest_model: HumanAddr,
      pub distribution_model: HumanAddr,
      pub overseer_contract: HumanAddr,
      pub collector_contract: HumanAddr,
      pub distributor_contract: HumanAddr,
      pub stable_denom: String,
      pub reserve_factor: Decimal256,
      pub max_borrow_factor: Decimal256,
  }

Market Contract's StateResponse also differs

[BUG] Initate Instance fail

Describe the bug
Initate Instance fail
I got a fail on init instance of the anchor money market contracts.
To Reproduce
id: 18465
{
"owner_addr": "terra1tt3yrvuc7aq4lnyl0rykz97vvz8j6jhrv6qa99",
"stable_denom": "uusd",
"aterra_code_id": 5,
"anc_emission_rate": "0.05",
"max_borrow_factor": "0.95"
}
and 1 UST to deposit.

Context & versions
the latest code
image

(if applicable) suggested solution

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.