status-desktop/ui/app/AppLayouts/Wallet/popups/swap/SwapOutputData.qml

27 lines
635 B
QML
Raw Normal View History

import QtQuick 2.15
/* This is so that all the data from the response
to the swap request can be placed here at one place. */
QtObject {
id: root
property string fromTokenAmount: "0"
property string toTokenAmount: "0"
property real totalFees: 0
property var bestRoutes: []
property bool approvalNeeded
property bool hasError
property var rawPaths: []
function reset() {
root.fromTokenAmount = "0"
root.toTokenAmount = "0"
root.totalFees = 0
root.bestRoutes = []
root.approvalNeeded = false
root.hasError = false
root.rawPaths = []
}
}