UniV2 - Get Price Impact

The UniV2 - Get Price Impact node calculates the price impact of a token swap on Uniswap V2.

Inputs

  • token_in:

    • description: The address of the input ERC20 token for the swap. It must be the token contract address, not its name.

    • allowed types: EVMAddress

    • default value: None

  • token_out:

    • description: The address of the output ERC20 token for the swap. It must be the token contract address, not its name.

    • allowed types: EVMAddress

    • default value: None

  • amount:

    • description: The amount of the input token to be swapped.

    • allowed types: decimal

    • default value: 0

  • blockchain:

    • description: The name of the blockchain network where the price impact will be calculated.

    • allowed types: BlockchainName

    • default value: None

Output

  • description: The price impact percentage for the token swap

  • type: decimal

Tags

  • crypto

  • EVM

  • ERC20

  • uniswap

  • DEX

Last updated