All Projects â†’ saddle-finance â†’ saddle-contract

saddle-finance / saddle-contract

Licence: MIT license
The smart contracts behind saddle.finance 🤠

Programming Languages

typescript
32286 projects
solidity
1140 projects
Vyper
9 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Handlebars
879 projects

Projects that are alternatives of or similar to saddle-contract

layer2-finance-contracts
Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.
Stars: ✭ 40 (-66.94%)
Mutual labels:  defi
stablecoin.services
A gas free offering of common Dai and Chai operations
Stars: ✭ 32 (-73.55%)
Mutual labels:  defi
Blockchain-Alpha
Alpha from various sectors in the blockchain space.
Stars: ✭ 102 (-15.7%)
Mutual labels:  defi
clp-contracts
AMM and Continous Liquidity Provider smart contracts on NEAR blockchain
Stars: ✭ 25 (-79.34%)
Mutual labels:  defi
defi-sdk-js
JavaScript/TypeScript wrapper for DeFi SDK
Stars: ✭ 33 (-72.73%)
Mutual labels:  defi
synthetix-subgraph
All sources for the handful of Synthetix subgraphs indexed by The Graph
Stars: ✭ 44 (-63.64%)
Mutual labels:  defi
awesome-waves
Curated list of awesome things for development on Waves blockchain.
Stars: ✭ 60 (-50.41%)
Mutual labels:  defi
frontend-v2
Frontend app for the Balancer protocol
Stars: ✭ 127 (+4.96%)
Mutual labels:  defi
pando
Pando is a decentralized financial network built with the MTG technology, and its underlying financial algorithm is inspired by Maker and Synthetix.
Stars: ✭ 12 (-90.08%)
Mutual labels:  defi
challenge
Solidity Engineer Challenge
Stars: ✭ 94 (-22.31%)
Mutual labels:  defi
sdk
Li.Fi - Bridge & DEX aggregation: Any-to-Any Cross-Chain-Swap SDK
Stars: ✭ 18 (-85.12%)
Mutual labels:  defi
v1-contracts
Primitive protocol solidity contracts.
Stars: ✭ 42 (-65.29%)
Mutual labels:  defi
interbtc
interBTC: Trustless Bitcoin on Polkadot | kBTC: Trustless Bitcoin on Kusama
Stars: ✭ 136 (+12.4%)
Mutual labels:  defi
compound-borrow-examples
Code examples for borrowing Ethereum assets from the Compound Protocol.
Stars: ✭ 76 (-37.19%)
Mutual labels:  defi
ultimate-defi-research-base
Here we collect and discuss the best DeFI & Blockchain researches and tools. Feel free to DM me on Twitter or open pool request.
Stars: ✭ 1,074 (+787.6%)
Mutual labels:  defi
itoken
yToken wrappers for automated investment strategy tokenization
Stars: ✭ 71 (-41.32%)
Mutual labels:  defi
Smart-Contract-Security-Audits
Certified Smart Contract Audits (Ethereum, Hyperledger, xDAI, Huobi ECO Chain, Binance Smart Chain, Fantom, EOS, Tezos) by Chainsulting
Stars: ✭ 325 (+168.6%)
Mutual labels:  defi
octofi-app-aquafarm
OctoFi - Track your DeFi portfolio, find new investment opportunities, buy and sell directly, and wrap your tentacles around a sea of gains. Hosted on Github Pages.
Stars: ✭ 36 (-70.25%)
Mutual labels:  defi
airswap-web
AirSwap Web App
Stars: ✭ 94 (-22.31%)
Mutual labels:  defi
visor-core
The DeFi protocol for Active Liquidity Management. Building on Uniswap v3.
Stars: ✭ 50 (-58.68%)
Mutual labels:  defi

saddle-contract

codecov CI

The smart contracts behind saddle.finance 🤠

The contracts are compiled with Hardhat, and tested using Waffle and TypeScript.

Installation

$ npm ci --legacy-peer-deps

Usage

Build

$ npm run build

Test

$ npm test

Coverage

$ npm run coverage

Deploying contracts to localhost Hardhat EVM

$ npx hardhat node

You can connect to this RPC server via http://localhost:8545 with chain ID of 31337

Deploying contracts to local fork of a network

In order to successfully fork a network, the networks have to be defined in hardhat.config.ts with valid RPC URLs. In case of mainnet, ALCHEMY_API must be set to a valid URL in the .env file.

ALCHEMY_API="https://eth-mainnet.alchemyapi.io/v2/XXXXXXXXXXXX"
$ npm run fork --network=mainnet

You can connect to this RPC server via http://localhost:8545 with chain ID of the network.

Additionally, you can choose a block number to fork from by setting FORK_BLOCK_NUMBER env variable.

Deploying contracts to Ropsten

In order to successfully deploy to Ropsten, ALCHEMY_API_ROPSTEN must be set to a valid URL in the .env file. MNEMONIC_TEST_ACCOUNT must be set and the accounts must have some rEth for successful deployments.

ALCHEMY_API="https://eth-ropsten.alchemyapi.io/v2/XXXXXXXXXXXX"
MNEMONIC_TEST_ACCOUNT="seed phrase"

Generating GitBook docs

$ npx solidity-docgen --templates=templates

The output in the docs folder should be copied to the appropriate folder in the saddle-docs repo.

Running Slither

Slither is a Solidity static analysis framework. To run it locally:

$ pip3 install slither-analyzer
$ slither .

Slither is configured to run as a GitHub Action and error on any high findings.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].