erc20-pool

Permissioned ERC20 swap pool for EVM
Log | Files | Refs | README

commit 7bc32123cf58a0869b965d81f741623c64efdf84
parent ceb253bf8f625de493b81a28985b243b89654894
Author: lash <dev@holbrook.no>
Date:   Thu,  3 Aug 2023 15:51:28 +0100

Add token quote interface identifier

Diffstat:
Msolidity/DecimalQuote.sol | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/solidity/DecimalQuote.sol b/solidity/DecimalQuote.sol @@ -36,4 +36,15 @@ contract DecimalQuote { return _value * d; } } + + // Implements EIP165 + function supportsInterface(bytes4 _sum) public pure returns (bool) { + if (_sum == 0x01ffc9a7) { // ERC165 + return true; + } + if (_sum == 0xdbb21d40) { // TokenQuote + return true; + } + return false; + } }