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
        });
    }
}