Code Monkey home page Code Monkey logo

mirror-contracts's People

Contributors

csanti avatar jeelimm avatar monday-garfield avatar ouiliame 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mirror-contracts's Issues

Swagger generation / CLI docs

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

[BUG] `position_lock_info` query of Lock contract is not working.

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.

Factory contract is owned by Gov Contract ?

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?

[FEATURE] allow full liquidation of CDP outside of market hours

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

[FEATURE] Increase Short Rewards

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%

License and Notice in each contract repo

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.

Generic error: Querier contract error: terraswap::asset::PairInfoRaw not found: contract query failed: execute wasm contract failed

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

  1. Instantiate the contract
  2. Try to execute post_initialize method.

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!

[FEATURE] Add a No with Veto Vote option

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.

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.