|
@@ -346,7 +346,7 @@ namespace HyperCube.Models
|
|
|
{
|
|
|
var ret = await RunFunction("eth_getBalance", $"\"{address}\",\"latest\"");
|
|
|
var balanceWei = AccountModel.ConvertBalance(ret);
|
|
|
- var balanceToken = (double)balanceWei / 1000000000000000000.0;
|
|
|
+ var balanceToken = Math.Round((double)balanceWei / 1000000000000000000.0, 4);
|
|
|
Console.WriteLine($"GetBalance balanceToken {balanceToken}");
|
|
|
balance = balanceToken.ToString();
|
|
|
return balance;
|
|
@@ -538,6 +538,7 @@ namespace HyperCube.Models
|
|
|
public string[] ParseStringAnswer(string answer)
|
|
|
{
|
|
|
var ret = new string[] { };
|
|
|
+ Console.WriteLine($"ParseStringAnswer: {name}, answer.Length " + answer.Length);
|
|
|
if (answer.Length > 2)
|
|
|
{
|
|
|
answer = answer.Substring(2, answer.Length - 2);
|