simplify eth threshold check

This commit is contained in:
Ben 2025-08-05 15:34:59 +02:00
parent 6f5d6d2c03
commit c4d4624d5e
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B

View File

@ -153,7 +153,7 @@ namespace BiblioTech.Commands
private bool IsEthBalanceOverLimit(IGethNode gethNode, EthAddress addr)
{
var eth = gethNode.GetEthBalance(addr);
return ((decimal)eth.Eth) > Program.Config.SendEth;
return eth > Program.Config.SendEth.Eth();
}
private bool IsTestTokenBalanceOverLimit(ICodexContracts contracts, EthAddress addr)