moonwell-fi / moonwell-reward-automation

1 stars 0 forks source link

Add bridgeCost to JSON output #39

Open lyoungblood opened 2 months ago

lyoungblood commented 2 months ago

Can be calculated by reading bridgeCost in the xWELL router. The nativeValue should be 4-5x in order to avoid reverting due to an increase in gas costs:

"bridgeToRecipient": [
            {
                "amount": 1.0384584323052165e25,
                "nativeValue": 68220549863765773148,
                "network": 8453,
                "target": "TEMPORAL_GOVERNOR"
            },
            {
                "amount": 1.1538427025613517e24,
                "nativeValue": 68220549863765773148,
                "network": 8453,
                "target": "DEX_RELAYER"
            }
        ]