diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-05 22:47:24 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-02 04:21:09 +0800 |
commit | ae209677ded47baf9893e714629a145db7273521 (patch) | |
tree | c33647ec07575b3e5acfe87a97cc99c117d663d4 /packages/contracts | |
parent | d5ca00de9588ee81a1d464a0a8aa5561333c7633 (diff) | |
download | dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.gz dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.bz2 dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.lz dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.xz dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.zst dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.zip |
Improve the comments
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol | 4 |
1 files changed, 4 insertions, 0 deletions
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); |