chore: new router error `no positive balance` added

This commit is contained in:
Sale Djenic 2024-08-23 16:54:28 +02:00 committed by saledjenic
parent 9c4890698a
commit 3cf6614082
3 changed files with 6 additions and 1 deletions

View File

@ -212,6 +212,8 @@ QtObject {
return qsTr("not enough ETH")
case Constants.routerErrorCodes.router.errLowAmountInForHopBridge:
return qsTr("amount in too low")
case Constants.routerErrorCodes.router.errNoPositiveBalance:
return qsTr("no positive balance")
default:
return qsTr("unknown processor error")
}
@ -365,6 +367,8 @@ QtObject {
}
case Constants.routerErrorCodes.router.errLowAmountInForHopBridge:
return qsTr("bonder fee greater than estimated received, a higher amount is needed to cover fees")
case Constants.routerErrorCodes.router.errNoPositiveBalance:
return qsTr("no positive balance for your account across chains")
default:
return ""
}

View File

@ -1131,6 +1131,7 @@ QtObject {
readonly property string errCannotCheckReceiverBalance : "WR-024"
readonly property string errCannotCheckLockedAmounts : "WR-025"
readonly property string errLowAmountInForHopBridge : "WR-026"
readonly property string errNoPositiveBalance : "WR-027"
}
}

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 1418d40a6360b41f25edb4d9fb729bb048949f30
Subproject commit 9b9a91f654dbfb9a0e4b46964ed766c6bbbe45d0