Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Uniswap V3 Forge Test Quoter

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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.

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

Package last updated on 15 May 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc