mirror of
https://github.com/grassrootseconomics/erc20-pool.git
synced 2024-12-04 08:36:46 +01:00
Add token quote interface identifier
This commit is contained in:
parent
ceb253bf8f
commit
7bc32123cf
@ -36,4 +36,15 @@ contract DecimalQuote {
|
|||||||
return _value * d;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user