Coder Social home page Coder Social logo

fhd1423 / splurgefi Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 948 KB

Automated DEX trading with EIP-712 Signatures based on price deviations, settled through the 0x Protocol.

Home Page: https://splurgefi-xi.vercel.app

Solidity 3.89% Shell 1.25% TypeScript 61.72% JavaScript 32.92% CSS 0.10% Dockerfile 0.12%

splurgefi's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @fhd1423

splurgefi's People

Contributors

akhilrajeth avatar fhd1423 avatar karthik144 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

splurgefi's Issues

Backend - Get valid trades and quotes

  • go through trade payloads
  • check delta, which interval, pair
  • check Pairs table and find current price and mean price for interval
  • if condition is met, call 0x quote
  • put calldata in trade table CALLDATA

cleanup db

remove percentChange, deadline: they are already in the order

combine

  • batches
  • remainingBatches
  • batchTimings
  • time_bw_batches

=> {
lastExecutedBatchTime,
remainingBatches
}

timebwbatches and batches are already in the order

Get Data to Supabase

  1. Construct Signature
  • read from the contract to get decimals from viem
  1. Send To Supabase
  • Link signature to dynamic user

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.