anchor-protocol / money-market-contracts Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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.
Use Decimal256!
hi, development team. I met one problem.
I cloned the anchor money market and got success in depositing UST to my cloned contracts. could you possibly let me know how to query the balance of my deposited UST on my cloned contracts?
This is my cloned UST money market contracts address.
Terra15dzu8daqh5shdda6w79vl4hkw73fzrhzfhr7fe
Thank you in advance.
I'd like to know this contract(terra1yemu0kt0sgkpa8gghr8paqxdeup0ucr430gph0) is from where?
the above image is from the anchor money market contract.
my wallet address: terra14g430dz4gnv3g4w449fadcj22cvapcj860nsz2
my cloned money market contract address: terra15dzu8daqh5shdda6w79vl4hkw73fzrhzfhr7fe
Thank you.
I can't seem to access this link:
https://app.gitbook.com/@anchor-protocol/s/anchor-2/smart-contracts/money-market/overseer
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?
Hello there :)
v0.3.1 of the crate is not available on crates.io.
Thanks
The ./artifacts folder contains build outputs such as .wasm files, and should be added to the .gitignore
Any reason not to do this?
Hello I was wondering if it could be implemented that when $LUNA is at a certain price or your LTV on ur bETH/bLUNA UST borrow is at a certain number that aUST / money deposited into anchor Earn could be used to do automatic repayment?
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
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
(if applicable) suggested solution
pls fix.
I am trying to develop smart contract using anchor.
I need to get some rates from ust to aust by api or other things.
If you can help me, it will be appreciated for me thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.