aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/current/tutorials/EtherDelta
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/src/current/tutorials/EtherDelta')
-rw-r--r--packages/contracts/src/current/tutorials/EtherDelta/AccountLevels.sol11
-rw-r--r--packages/contracts/src/current/tutorials/EtherDelta/EtherDelta.sol2
2 files changed, 12 insertions, 1 deletions
diff --git a/packages/contracts/src/current/tutorials/EtherDelta/AccountLevels.sol b/packages/contracts/src/current/tutorials/EtherDelta/AccountLevels.sol
new file mode 100644
index 000000000..2214ed6b3
--- /dev/null
+++ b/packages/contracts/src/current/tutorials/EtherDelta/AccountLevels.sol
@@ -0,0 +1,11 @@
+pragma solidity ^0.4.19;
+
+contract AccountLevels {
+ //given a user, returns an account level
+ //0 = regular user (pays take fee and make fee)
+ //1 = market maker silver (pays take fee, no make fee, gets rebate)
+ //2 = market maker gold (pays take fee, no make fee, gets entire counterparty's take fee as rebate)
+ function accountLevel(address user) constant returns(uint) {
+ return 0;
+ }
+}
diff --git a/packages/contracts/src/current/tutorials/EtherDelta/EtherDelta.sol b/packages/contracts/src/current/tutorials/EtherDelta/EtherDelta.sol
index 2b58a4a68..515e3342c 100644
--- a/packages/contracts/src/current/tutorials/EtherDelta/EtherDelta.sol
+++ b/packages/contracts/src/current/tutorials/EtherDelta/EtherDelta.sol
@@ -1,7 +1,7 @@
pragma solidity ^0.4.19;
import { SafeMath } from "../../utils/SafeMath/SafeMath.sol";
-import { AccountLevels } from "../AccountLevels/AccountLevels.sol";
+import { AccountLevels } from "./AccountLevels.sol";
import { Token } from "../../tokens/Token/Token.sol";
contract EtherDelta is SafeMath {