Use usdc balance instead usdc value for ensuring balance check
This commit is contained in:
20
src/Managing.Infrastructure.Web3/EvmMappers.cs
Normal file
20
src/Managing.Infrastructure.Web3/EvmMappers.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Managing.Domain.Accounts;
|
||||
using Managing.Domain.Evm;
|
||||
|
||||
namespace Managing.Infrastructure.Evm;
|
||||
|
||||
public static class EvmMappers
|
||||
{
|
||||
public static List<Balance> Map(List<EvmBalance> balances)
|
||||
{
|
||||
return balances.ConvertAll(balance => new Balance
|
||||
{
|
||||
TokenName = balance.TokenName,
|
||||
Price = balance.Price,
|
||||
Value = balance.Value,
|
||||
Amount = balance.Balance,
|
||||
TokenAdress = balance.TokenAddress,
|
||||
Chain = balance.Chain
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user