diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-05 22:16:29 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-02 04:21:08 +0800 |
commit | e113a8e7afe16ac0f013fa88fe0736a86bf800c1 (patch) | |
tree | 082ec8423a227f88260f2f0d8db8b09c22b036ea /packages/contracts/src/current/tutorials/EtherDelta | |
parent | e42891ae5b1b535d4376fc31078f15d6c3c9cb77 (diff) | |
download | dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.tar dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.tar.gz dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.tar.bz2 dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.tar.lz dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.tar.xz dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.tar.zst dexon-sol-tools-e113a8e7afe16ac0f013fa88fe0736a86bf800c1.zip |
Put all ED contracts in one folder
Diffstat (limited to 'packages/contracts/src/current/tutorials/EtherDelta')
-rw-r--r-- | packages/contracts/src/current/tutorials/EtherDelta/AccountLevels.sol | 11 | ||||
-rw-r--r-- | packages/contracts/src/current/tutorials/EtherDelta/EtherDelta.sol | 2 |
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 { |