Skip to content

Commit

Permalink
Updated function 'Trade()'.
Browse files Browse the repository at this point in the history
No need to update 'PowerUp()'.
  • Loading branch information
yurigabrich authored Mar 14, 2020
1 parent 508c1ab commit dfb9b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo-dapp/microgrid-dapp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ public static bool Trade( byte[] fromAddress, byte[] toAddress, BigInteger excha
// register = {"quota", "tokens"}
for (int r = 0; r < n; r++)
{
fromWallet[r] = GetMemb( fromAddress, register[r] ).AsBigInteger();
toWallet[r] = GetMemb( toAddress, register[r] ).AsBigInteger();
fromWallet[r] = (BigInteger)GetMemb( fromAddress, register[r] );
toWallet[r] = (BigInteger)GetMemb( toAddress, register[r] );
}

if ( ( fromWallet[0] < exchange ) || ( toWallet[1] < price ) ) return false;
Expand Down

0 comments on commit dfb9b15

Please sign in to comment.