Add tokenquote interface

This commit is contained in:
lash
2023-08-03 14:13:26 +01:00
parent 48d69ce74c
commit b9a29b7827
7 changed files with 93 additions and 3 deletions

View File

@@ -76,6 +76,8 @@ The following well-known solidity interfaces are partially implemented in CIC na
@include tokenlimit.sol.texi
@include tokenquote.sol.texi
@include tokenratechange.sol.texi
@include tokenswap.sol.texi

View File

@@ -2,7 +2,7 @@
Define limits of value amounts of tokens that individual addresses can hold.
Limits are inclusive; a limit for 42 means transfer resulting in a token balance _higher_ than 42 should be rejected.
Limits are inclusive; a limit for 42 means transfer resulting in a token balance @emph{higher} than 42 should be rejected.
A return value of 0 indicates that the token is categorically not accepted by the holder.

View File

@@ -0,0 +1,20 @@
@subsection TokenQuote
Quote an output token value for a given value of input tokens.
Both input and output value is denominated in the smallest available unit of respective tokens.
@subsubsection ERC165 Interface identifier
@include ../../build/TokenQuote.interface
@subsubsection Solidity interface definition
@include ../../build/contract_TokenQuote.texi
@subsubsection Example implementation
@itemize
@item
@uref{git://holbrook.no/erc20-limiter.git,}
@end itemize