/Get-Curve-Spot-Price-Foundry

Get the spot price of tokens from by calling the curve.fi swap router using foundry

Primary LanguageSolidity

Get Curve Spot Price

Get the spot price of tokens from by calling the curve.fi swap router using foundry

Usage

Build

$ forge build

Test

$ forge test --match-path test/GetPrice.t.sol -vvv

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Python version