Skip to content

Pinto is low volatility money built on Base.

License

Notifications You must be signed in to change notification settings

BuidlWithShivam/pinto-protocol

 
 

Repository files navigation

pinto logo

Pinto

Discord

Pinto is low volatility money built on Base.

Code Version: 1.0.0
Whitepaper Version: 1.0.0

Documentation

Audits

Pinto inherits significant audit coverage from Beanstalk. Prior Beanstalk audits can be found here. A list of changes in Pinto can be found here.

Contracts

A comprehensive list of deployed contract addresses related to Pinto is available here.

Repository

This directory contains the code for the core Pinto protocol, including its contracts, interfaces, ecosystem contracts and tests.

EIP-2535 Diamond

The Pinto contract is a multi-facet proxy that implements EIP-2535. Thus, the Pinto contract implements functionality from multiple different Facet contracts that all share a common storage.

Quickstart

Setup

  1. Clone the repository, enter root directory
  2. Install dependencies
yarn install
  1. Build contracts
foundryup
forge install foundry-rs/forge-std --no-commit
forge build

Testing

Hardhat

  1. Ensure you are in the root directory
  2. Have a FORKING_RPC as an environment variable pointing to ETH Mainnet.
    1. We fork ETH Mainnet to run our test suite locally. Note, this will make a large number of API calls to your FORKING_RPC
  3. Run all tests
yarn test

Foundry

  1. Ensure you are in the root directory
  2. Install foundry with foundryup - instructions here
  3. forge install foundry-rs/forge-std --no-commit
  4. forge test

Forking Locally

  1. Ensure you are in the root repository
  2. Run foundryup to ensure you have downloaded the latest version
  3. Start a locally forked node with the following command:
anvil --fork-url <FORKING_RPC> --fork-block-number <BLOCK_NUMBER> --chain-id 1337

For <FORKING_RPC>, use an Alchemy or Infura RPC URL.

Note: anvil will cache the blockchain provided that BLOCK_NUMBER does NOT change. Given this, we recommend picking a block and sticking to it.

License

MIT

About

Pinto is low volatility money built on Base.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 72.9%
  • JavaScript 27.0%
  • Python 0.1%