mirror-protocol / mirror-contracts Goto Github PK
View Code? Open in Web Editor NEWSmart contracts powering Mirror Protocol on Terra
Home Page: https://mirror.finance
License: Apache License 2.0
Smart contracts powering Mirror Protocol on Terra
Home Page: https://mirror.finance
License: Apache License 2.0
Where we can find addresses of deployed contracts?
I can't find them in docs: https://docs.mirror.finance/contracts/architecture
How band protocol feed price for mAssets?
Consider creating a way for swagger to be automatically generated OR to add reference to a manually created swagger documentation to the readme.
Also, consider creating a separate CLI tool with attendant documentation, similar to https://docs.terra.money/terracli/
OR
to add documentation on how terracli
can be used for the same purpose
Describe the bug
When I tried to query the locked collateral amount of my short positions, I always receive the following error:
rpc error: code = Internal desc = mirror_lock::state::PositionLockInfo not found: contract query failed: unknown request
To Reproduce
I performed the query using terra.js
as follows:
const lock = await lcd.wasm.contractQuery(
'terra169urmlm8wcltyjsrn7gedheh7dker69ujmerv2',
{
position_lock_info: {
position_idx: 100246,
},
},
);
The lock contract address was verified on both columbus.json
file as well as etFinder.
Context & versions
Latest version was used (in terms of mirror.js
).
(if applicable) suggested solution
According to the message, it seems there might be an error in the state.rs
of the lock contract. However, I'm not sure what went wrong exactly.
The Factory contract is owned by Gov Contract, so the owner address of Factory contract is Th Gov Contract Address.
How can i sign a signature when i want to execute msg on The Factory Contract to whitelist new mAsset?
We also need to revert collateral oracle to use normal price after the issue merged and deployed to Columbus chain.
Hi Mirror team,
Why haven't you published your ethereum smart contracts?
Examples: https://etherscan.io/address/0xF497145AD68ed6aDFA981c21e5bCdE949d0C3935
Thanks,
Chris
Problem definition
currently if I have a CDP that I want to fully liquidate it (burn all outstanding mAssets and withdraw 100% of the collateral), then I can only do that during market hours. I understand that if it was just 50% liquidation, then we need the mAsset oracle (to check in the withdraw function that the minimum collateral ratio still holds), but for full liquidation I don't see any reason for contacting the mAsset oracle.
Feature specification
Additional context
Problem definition
Premiums are pretty high right now so we should increase short rewards
Feature specification
Increase the maximum short reward ratio to somthing higher then 40%
Issue
There is a separate license and notice in each contracts folder - consider creating a topline MIT license and removing LICENSE and NOTICE files from each subfolder.
Simp 3 calls for increase to 100%
Describe the bug
Getting Querier contract error: terraswap::asset::PairInfoRaw not found
when trying to invoke post_initialize method after instantiating the mirror_factory.
Failed transaction: https://finder.terra.money/bombay-10/tx/1FCBFA0CD846639888DEEA0A6263DD28F3D6F300F7899F7228AFD3992BA21112
To Reproduce
Mirror_Factory contract address on bombay-10: https://finder.terra.money/bombay-10/address/terra1m2s8897sgf5pxdpr4t78dpvyctkh7awamnyffj
Context & versions
Using current Main branch of mirror-contracts and terraswap.
(if applicable) suggested solution
If you know the solution to the bug, let us know!
Problem definition
The 100 MIR fee is returned if a proposal passes Quorum and there is no way to punish and discourage activly harmful or scam proposals once they have passed Quorum.
Feature specification
Add a "No with Veto" option to the vote, if a proposal get's rejected and has more no with veto votes then regular no votes the 100 MIR should not be returned.
Additional context
Add any other context or screenshots about the feature request here.
return Err(StdError::generic_err("Cannot snapshot at this time"));
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.