Giter Site home page Giter Site logo

pipertang / ethena_sats_adapters Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethena-labs/ethena_sats_adapters

0.0 0.0 0.0 63 KB

adapters for awarding Ethena sats to users of integrating protocols

Home Page: https://app.ethena.fi/liquidity

Python 100.00%

ethena_sats_adapters's Introduction

Overview

This repo offers a self service approach to Ethena Sats Campaign integrations.

Instructions

For your protocol to be included and your users to receive sats, you should submit a PR to this repo. Here some guidelines to follow:

  1. Make a copy of .env.example and name it .env.
  2. Run pip install -r requirements.txt to install the required packages.
  3. Add your integration metadata to constants/integration_ids.py.
  4. Make a copy of integrations/template.py, naming the file [protocol name].py and place in the integrations directory.
  5. Your integration must be a class that inherits from Integration and implements the get_balance and get_participants methods.
  6. The get_balance method should return the balance of a given user at a given block.
  7. The get_participants method should return a list of all users that have interacted with the protocol.
  8. Write some basic tests at the bottom of the file to ensure your integration is working correctly.
  9. Submit a PR to this repo with your integration and ping the Ethena team in Telegram.

Guidelines

  • Integrations must follow this architecture and be written in python.
  • Pendle integrations are included as examples of functioning integrations. Run python -m integrations.pendle_lpt_integration to see the output.
  • The get_balance and get_participants methods should be as efficient as possible.
  • We prefer that on chain RPC calls are used to get information as much as possible due to reliability and trustlessness. For example one could cycle through events for get_participants and read from a smart contract for get_balance. Off chain calls to apis or subgraphs are acceptable if necessary. If usage is not reasonable or the external service is not reliable, users may not receive their sats.

ethena_sats_adapters's People

Contributors

dehb6 avatar pierremarsotlyon1 avatar fj-riveros avatar robotoer avatar 0xmansamusa avatar tburm avatar pipertang 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.