Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zackcoburn committed Jul 4, 2017
1 parent 627055e commit afd476e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2650,8 +2650,13 @@ EtherDelta.prototype.deposit = function deposit(addr, inputAmount) {
}
if (addr.slice(0, 39) === '0x0000000000000000000000000000000000000') {
utility.getBalance(this.web3, this.addrs[this.selectedAccount], (err, result) => {
console.log('Depositing');
console.log(amount.toNumber());
console.log(err);
console.log(result.toNumber());
if (amount.gt(result) && amount.lt(result.times(new BigNumber(1.1)))) amount = result;
if (amount.lte(result)) {
console.log(amount.toNumber());
utility.send(
this.web3,
this.contractEtherDelta,
Expand Down
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1306,8 +1306,13 @@ EtherDelta.prototype.deposit = function deposit(addr, inputAmount) {
}
if (addr.slice(0, 39) === '0x0000000000000000000000000000000000000') {
utility.getBalance(this.web3, this.addrs[this.selectedAccount], (err, result) => {
console.log('Depositing');
console.log(amount.toNumber());
console.log(err);
console.log(result.toNumber());
if (amount.gt(result) && amount.lt(result.times(new BigNumber(1.1)))) amount = result;
if (amount.lte(result)) {
console.log(amount.toNumber());
utility.send(
this.web3,
this.contractEtherDelta,
Expand Down

0 comments on commit afd476e

Please sign in to comment.