Get the spot price of tokens from by calling the curve.fi swap router using foundry
$ forge build
$ forge test --match-path test/GetPrice.t.sol -vvv
$ forge fmt
$ forge snapshot
Get the spot price of tokens from by calling the curve.fi swap router using foundry
Solidity
Get the spot price of tokens from by calling the curve.fi swap router using foundry
$ forge build
$ forge test --match-path test/GetPrice.t.sol -vvv
$ forge fmt
$ forge snapshot