Giter Site home page Giter Site logo

terra-cross-rate-computation-analysis's Introduction

Terra cross-rate computation analysis

Github Issue

terra-money/classic-core#342

Related Analysis

https://medium.com/@contact_91159/terra-sdr-arbitrage-and-cross-rate-calculation-a77bfee70ca0

Describe the bug

The state machine computes cross-exchange-rate from votes as below

  1. calculate median price for each Luna/Terra rates voted
  2. use the calculated median prices to calculate cross-rate

Problems

The current calculation mechanism does not accurately capture the cross-rateCurrently it is creating highly volatile cross-rate, resulting in creating very frequentcross-rate swap arbitrage opportunity which drains the network's asset

Suggested Solution

The state machine should be

  1. first calculate each implied cross-rate from each validator's votes
  2. derive the median of implied cross rates of each validator
  3. if one of the Luna/Terra rate is unavailable for a validator's votes, it is neglected during computation of median

Contribution Work Contents

  1. Complete codebase and document Pull Request on Github
  2. A test code to check the functionality of new cross-rate computation process
  3. A broad risk analysis report on instability of cross-rate oracle prices

terra-cross-rate-computation-analysis's People

Contributors

hyung-bharvest avatar

Watchers

James Cloos avatar JeseonLEE avatar

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.