GithubHelp home page GithubHelp logo

2021-02-slingshot's Introduction

Code Contest 1: Slingshot Trading Contracts

Code Contest Details

Pot Size
$20,000

Start Time
Feb 17, 1400 UTC

Stop Time
Feb 21, 2359 UTC

Judge(s)
Zak Cole
GitHub

About The Code

As a system, Slingshot aggregates prices for available token pairs from a variety of decentralized exchanges and automated market making protocols.

How It Works

Slingshot.sol defines the general logic by which a transaction is handled and executed.

The specific logic for each DEX/AMM is defined within its own corresponding module that is stored in the module registry.

Slingshot.sol references these modules to appropriately execute a trade. Slingshot.sol also performs some safety checks to account for slippage and security. Slingshot.sol expect parameters to be passed from the Slingshot backend that provide the details related to how a given transaction should be executed.

As this code conforms to NatSpec formatting specifications, lower level details regarding function can be found as comments within the code itself.

Sharing Vulnerability/Discovery POC

Should you identify a vulnerability or bug and have a POC that demonstrates the exploit, please create a private repository and share the POC with the contest Judge. When you have shared access, please also notify the judge on Discord to let them know you have shared it.

2021-02-slingshot's People

Contributors

sockdrawermoney avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.