Socket
Socket
Sign inDemoInstall

@exhausted-pigeon/uniswap-v3-forge-quoter

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @exhausted-pigeon/uniswap-v3-forge-quoter

Uniswap V3 Forge Test Quoter


Version published
Weekly downloads
23
decreased by-14.81%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Uniswap V3 Forge Test Quoter

Get a Uniswap V3 quote (amount of token received for an exact amount of token sent), by simulating the actual swap.

This contract is meant to be used within Forge test.

Installation

either npm i @exhausted-pigeon/uniswap-v3-forge-quoter or forge install exhausted-pigeon-srl/uniswap-v3-foundry-quote

Usage


import "exhausted-pigeon/UniswapV3ForgeQuoter.sol";

contract MyTest is UniswapV3ForgeQuoter {
    IUniswapV3Pool usdcEth5bps = IUniswapV3Pool(0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640);
    address usdc = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
    address weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    function test_myTest() external {
        uint256 _amountOut = getAmountOut(usdcEth5bps, 1 ether, weth);
    }
}

FAQs

Last updated on 19 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc