aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-05 22:47:24 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-02 04:21:09 +0800
commitae209677ded47baf9893e714629a145db7273521 (patch)
treec33647ec07575b3e5acfe87a97cc99c117d663d4
parentd5ca00de9588ee81a1d464a0a8aa5561333c7633 (diff)
downloaddexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.gz
dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.tar.zst
dexon-0x-contracts-ae209677ded47baf9893e714629a145db7273521.zip
Improve the comments
-rw-r--r--packages/contracts/src/current/tutorials/Arbitrage/Arbitrage.sol4
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);
insertions'>+0 * - remove empty filespgollucci2010-12-131-0/+0 * - Update to 0.4.0pgollucci2010-12-114-17/+9 * Sync to new bsd.autotools.mkade2010-12-041-2/+2 * Punt autoconf267->autoconf268ade2010-10-161-1/+1 * Round one migration of ports from automake{19,110} to automake111ade2010-10-061-2/+2 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-2/+2 * Add patch for issue THRIFT-817.skv2010-08-182-1/+13 * Update to 0.3.0skv2010-08-093-7/+7 * Update libevent to 1.4.14bmm2010-07-251-0/+1 * Update to 0.2.0skv2009-12-222-26/+11 * - Mark MAKE_JOBS_UNSAFEpav2009-11-191-0/+1 * Mark as broken on sparc64: does not compile.linimon2009-08-151-0/+4 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - Update boost to 1.39pav2009-07-281-2/+1 * Document in Makefile what state of language support is.bms2009-07-051-4/+13 * Update Thrift port to SVN rev 787160 of Apache Incubator source.bms2009-06-244-24/+68 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-061-7/+1 * - Update libevent dependency and bump PORTREVISIONmnag2008-08-201-2/+2 * - Bump PORTREVISION since devel/libevent are updated.mnag2008-01-031-1/+2 * Remove lang/gcc40 which only has three dependencies left in the treegerald2007-11-041-1/+1 * - Mark BROKEN on 5.X: incorrect plistpav2007-10-261-1/+7