Add token quote interface identifier

This commit is contained in:
lash 2023-08-03 15:51:28 +01:00
parent ceb253bf8f
commit 7bc32123cf
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -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;
}
}