Skip to content
Verified contractPartialGPL-3.0-only

WidoRouter

Address0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394
Balance

0 ETH

 

Transactions

1,162

 

Compiler

solc 0.8.7

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.7+commit.e28d00a7
Language
solidity
Optimization
Yes, 2,000 runs
EVM version
london
License
GPL-3.0-only
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
16,233,360
Creation transaction
0x89eb8e38b6…8fed21c771

Read6

  • bank() → (address)
  • nonces(address) → (uint256)
  • owner() → (address)
  • verifyOrder(tuple,uint8,bytes32,bytes32) → (bool)
  • widoTokenManager() → (address)
  • wrappedNativeToken() → (address)

Write6

  • executeOrder(tuple,tuple[],uint256,address)
  • executeOrder(tuple,tuple[],address,uint256,address)
  • executeOrderWithSignature(tuple,tuple[],uint8,bytes32,bytes32,uint256,address)
  • renounceOwnership()
  • setBank(address)
  • transferOwnership(address)

Events3

  • FulfilledOrder(tuple,address,address,uint256,address)
  • OwnershipTransferred(address,address)
  • SetBank(address)

Errors1

  • SlippageTooHigh(uint256,uint256)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_wrappedNativeToken",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_bank",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "SlippageTooHigh",
    "type": "error",
    "inputs": [
      {
        "name": "expectedAmount",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "actualAmount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "FulfilledOrder",
    "type": "event",
    "inputs": [
      {
        "name": "order",
        "type": "tuple",
        "indexed": false,
        "components": [
          {
            "name": "inputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderInput[]"
          },
          {
            "name": "outputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "minOutputAmount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderOutput[]"
          },
          {
            "name": "user",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "expiration",
            "type": "uint32",
            "internalType": "uint32"
          }
        ],
        "internalType": "struct IWidoRouter.Order"
      },
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "recipient",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "feeBps",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "partner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "OwnershipTransferred",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "SetBank",
    "type": "event",
    "inputs": [
      {
        "name": "bank",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "bank",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "executeOrder",
    "type": "function",
    "inputs": [
      {
        "name": "order",
        "type": "tuple",
        "components": [
          {
            "name": "inputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderInput[]"
          },
          {
            "name": "outputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "minOutputAmount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderOutput[]"
          },
          {
            "name": "user",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "expiration",
            "type": "uint32",
            "internalType": "uint32"
          }
        ],
        "internalType": "struct IWidoRouter.Order"
      },
      {
        "name": "route",
        "type": "tuple[]",
        "components": [
          {
            "name": "fromToken",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "targetAddress",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "amountIndex",
            "type": "int32",
            "internalType": "int32"
          }
        ],
        "internalType": "struct IWidoRouter.Step[]"
      },
      {
        "name": "feeBps",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "partner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "executeOrder",
    "type": "function",
    "inputs": [
      {
        "name": "order",
        "type": "tuple",
        "components": [
          {
            "name": "inputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderInput[]"
          },
          {
            "name": "outputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "minOutputAmount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderOutput[]"
          },
          {
            "name": "user",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "expiration",
            "type": "uint32",
            "internalType": "uint32"
          }
        ],
        "internalType": "struct IWidoRouter.Order"
      },
      {
        "name": "route",
        "type": "tuple[]",
        "components": [
          {
            "name": "fromToken",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "targetAddress",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "amountIndex",
            "type": "int32",
            "internalType": "int32"
          }
        ],
        "internalType": "struct IWidoRouter.Step[]"
      },
      {
        "name": "recipient",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "feeBps",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "partner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "executeOrderWithSignature",
    "type": "function",
    "inputs": [
      {
        "name": "order",
        "type": "tuple",
        "components": [
          {
            "name": "inputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderInput[]"
          },
          {
            "name": "outputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "minOutputAmount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderOutput[]"
          },
          {
            "name": "user",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "expiration",
            "type": "uint32",
            "internalType": "uint32"
          }
        ],
        "internalType": "struct IWidoRouter.Order"
      },
      {
        "name": "route",
        "type": "tuple[]",
        "components": [
          {
            "name": "fromToken",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "targetAddress",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "data",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "amountIndex",
            "type": "int32",
            "internalType": "int32"
          }
        ],
        "internalType": "struct IWidoRouter.Step[]"
      },
      {
        "name": "v",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "r",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "s",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "feeBps",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "partner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "nonces",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setBank",
    "type": "function",
    "inputs": [
      {
        "name": "_bank",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "verifyOrder",
    "type": "function",
    "inputs": [
      {
        "name": "order",
        "type": "tuple",
        "components": [
          {
            "name": "inputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "amount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderInput[]"
          },
          {
            "name": "outputs",
            "type": "tuple[]",
            "components": [
              {
                "name": "tokenAddress",
                "type": "address",
                "internalType": "address"
              },
              {
                "name": "minOutputAmount",
                "type": "uint256",
                "internalType": "uint256"
              }
            ],
            "internalType": "struct IWidoRouter.OrderOutput[]"
          },
          {
            "name": "user",
            "type": "address",
            "internalType": "address"
          },
          {
            "name": "nonce",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "expiration",
            "type": "uint32",
            "internalType": "uint32"
          }
        ],
        "internalType": "struct IWidoRouter.Order"
      },
      {
        "name": "v",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "r",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "s",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "widoTokenManager",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract WidoTokenManager"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "wrappedNativeToken",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "receive",
    "stateMutability": "payable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.