Improve the comments

This commit is contained in:
Leonid Logvinov 2018-02-05 15:47:24 +01:00
parent d5ca00de95
commit ae209677de
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -21,6 +21,10 @@ contract Arbitrage is Ownable {
proxyAddress = _proxyAddress;
}
/*
* Makes token tradeable by setting an allowance for etherDelta and 0x proxy contract.
* Also sets an allowance for the owner of the contracts therefore allowing to withdraw tokens.
*/
function setAllowances(address tokenAddress) external onlyOwner {
Token token = Token(tokenAddress);
token.approve(address(etherDelta), MAX_UINT);