Skip to content

pinto-org/protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pinto logo

Pinto

Discord

Low-volatility money with a $1 price target.

Code version history: https://github.com/pinto-org/protocol/releases

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

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 7