From ae209677ded47baf9893e714629a145db7273521 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 5 Feb 2018 15:47:24 +0100 Subject: Improve the comments --- packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/contracts/src') diff --git a/packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol b/packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol index c2dea4e3e..a9f3c22e6 100644 --- a/packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol +++ b/packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol @@ -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); -- cgit