Add tokenquote interface
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
20
doc/texinfo/tokenquote.sol.texi
Normal file
20
doc/texinfo/tokenquote.sol.texi
Normal 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
|
||||
Reference in New Issue
Block a user