Skip to content

Commit

Permalink
fix: earned fees changed to hex strings
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Aug 27, 2024
1 parent b945112 commit 86d95cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Linux users can also run `wget https://raw.githubusercontent.com/CumpsD/chainfli
```yml
services:
lp:
image: chainfliplabs/chainflip-lp-api:1.4
image: chainfliplabs/chainflip-lp-api:1.5
pull_policy: always
stop_grace_period: 5s
stop_signal: SIGINT
Expand Down
14 changes: 7 additions & 7 deletions chainflip-lp/RpcModel/AccountResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ public class AccountFees
public ArbitrumFeesBalance Arbitrum { get; set; }

[JsonIgnore]
public Dictionary<string, Dictionary<string, ulong>> Fees
public Dictionary<string, Dictionary<string, string>> Fees
{
get
{
var balances = new Dictionary<string, Dictionary<string, ulong>>
var balances = new Dictionary<string, Dictionary<string, string>>
{
{
"Ethereum", new Dictionary<string, ulong>
"Ethereum", new Dictionary<string, string>
{
{ "USDC", Ethereum.UsdcBalance },
{ "USDT", Ethereum.UsdtBalance },
}
},
{
"Arbitrum", new Dictionary<string, ulong>
"Arbitrum", new Dictionary<string, string>
{
{ "USDC", Arbitrum.UsdcBalance },
}
Expand All @@ -103,10 +103,10 @@ public class EthereumBalance
public class EthereumFeesBalance
{
[JsonPropertyName("USDC")]
public ulong UsdcBalance { get; set; }
public string UsdcBalance { get; set; }

[JsonPropertyName("USDT")]
public ulong UsdtBalance { get; set; }
public string UsdtBalance { get; set; }
}

public class ArbitrumBalance
Expand All @@ -118,6 +118,6 @@ public class ArbitrumBalance
public class ArbitrumFeesBalance
{
[JsonPropertyName("USDC")]
public ulong UsdcBalance { get; set; }
public string UsdcBalance { get; set; }
}
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
lp:
image: chainfliplabs/chainflip-lp-api:1.4
image: chainfliplabs/chainflip-lp-api:1.5
pull_policy: always
stop_grace_period: 5s
stop_signal: SIGINT
Expand Down

0 comments on commit 86d95cd

Please sign in to comment.