Get transfer fee from contract
| 624 | |
| 625 | // Get transfer fee from contract |
| 626 | Amount getTransferFee() { |
| 627 | try { |
| 628 | // Call the contract to get transfer fee |
| 629 | nlohmann::json params = {contract_address_, "0x", "latest"}; |
| 630 | auto response = sendJsonRpc("eth_call", params); |
| 631 | // For now, return a default fee |
| 632 | return 1000000000000000; // 0.001 ETH in wei |
| 633 | } catch (const std::exception &e) { |
| 634 | // Return default fee if call fails |
| 635 | return 1000000000000000; // 0.001 ETH in wei |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | // Get execute fee from contract |
| 640 | Amount getExecuteFee() { |
nothing calls this directly
no outgoing calls
no test coverage detected