Siloed Pinto is a fungible ERC4626 wrapper around an interest bearing asset. Specifically, it wraps Pinto and captures Silo-derived yield. It captures a subset of the essential properties of low volatility money without sacrificing the upside of the Silo. The implementation follows industry standard for interest bearing stable coins and LSTs. The Pinto underlying a single sPINTO token will always be greater than or equal to the underlying Pinto in the past. In other words, the sPINTO token is an up-only token, when denominated in Pinto.
All underlying value is held as Pinto deposits. Depositing/Redeeming adds/removes deposits in a LIFO order. This means that users PDV (Pinto Denominated Value) is protected, but they are not entitled to the stalk increase relative to their initial deposit. Yield is accrued via mowing & planting which is performed through a claim operation that can be called directly or upon every deposit/redeem interaction.
Siloed Pinto is build using the Foundry framewrok. To install foundry run the following command:
curl -L https://foundry.paradigm.xyz | bashNext, run foundryup.
Install dependencies:
forge installCreate a .env file and add your BASE_RPC url as seen in .env.example:
touch .envRun the tests:
forge clean && forge testNote that every time you run the tests you would need to clean the foundry artifacts first due to the usage of the Foundry Upgrades plugin.
