Coder Social home page Coder Social logo

brkntshn / hyperdrive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from delvtech/hyperdrive

0.0 0.0 0.0 9.11 MB

An automated market maker for fixed and variable yield with on-demand terms.

License: Apache License 2.0

Shell 0.02% Python 0.62% Rust 15.41% Makefile 0.08% Dockerfile 0.14% Solidity 82.20% Jinja 1.52%

hyperdrive's Introduction

Tests Coverage License Static Badge

Hyperdrive

Hyperdrive is an automated market maker that enables fixed-rate markets to be built on top of arbitrary yield sources.

Developing

Pre-requisites

This repository makes use of foundry to build and test the smart contracts and uses several node.js packages to lint and prettify the source code. Proceed through the following steps to set up the repository:

  • Install forge
  • Install yarn
  • Install lib/forge-std dependencies by running forge install from the project root
  • Install node.js dependencies by running yarn from the project root

Environment Variables

The test suite and migration scripts make use of several environment variables. Copy .env_template to .env and populate the file with your private key and provider URLs.

Build

To build the smart contracts, run make build.

Test

To test the smart contracts, run make test.

Lint

We have several linters. Solhint is a Solidity linter that checks for best practices and style, prettier is a Solidity formatter that checks for formatting and style, and cSpell is a spell checker. To run all three, run make lint. If you want to automatically format the code, run make prettier.

Yield Sources

The current suggested way of integrating your yield source with hyperdrive is through the ERC-4626 standard although accomodations can be made if this is not possible.

Disclaimer

The language used in this code and documentation is not intended to, and does not, have any particular financial, legal, or regulatory significance.


Copyright © 2024 DELV

Licensed under the Apache License, Version 2.0 (the "OSS License").

By accessing or using this code, you signify that you have read, understand and agree to be bound by and to comply with the OSS License and DELV's Terms of Service. If you do not agree to those terms, you are prohibited from accessing or using this code.

Unless required by applicable law or agreed to in writing, software distributed under the OSS License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the OSS License and the DELV Terms of Service for the specific language governing permissions and limitations.

hyperdrive's People

Contributors

jalextowle avatar jrhea avatar padraic-o-mhuiris avatar aleph-v avatar sentilesdal avatar controlcpluscontrolv avatar dpaiton avatar mcclurejt avatar wakamex avatar cashd avatar ryangoree avatar gtowle03 avatar dannydelott avatar lucas-manuel avatar slundqui avatar villanuevawill 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.