Deprecate UiTokenAmount::ui_amount (#15616)

* Add TokenAmount::ui_amount_string

* Fixup solana-tokens

* Update docs
This commit is contained in:
Tyera Eulberg
2021-03-02 22:51:41 -07:00
committed by GitHub
parent a9c8dbfd0c
commit 19ac79b5cc
11 changed files with 219 additions and 127 deletions

View File

@@ -890,7 +890,8 @@ mod test {
"tokenAmount": {
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
"amount": "42",
"uiAmountString": "0.42",
}
})
}
@@ -922,7 +923,8 @@ mod test {
"tokenAmount": {
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
"amount": "42",
"uiAmountString": "0.42",
}
})
}
@@ -954,7 +956,8 @@ mod test {
"tokenAmount": {
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
"amount": "42",
"uiAmountString": "0.42",
}
})
}
@@ -986,7 +989,8 @@ mod test {
"tokenAmount": {
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
"amount": "42",
"uiAmountString": "0.42",
}
})
}
@@ -1016,7 +1020,8 @@ mod test {
"tokenAmount": {
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
"amount": "42",
"uiAmountString": "0.42",
}
})
}
@@ -1046,7 +1051,8 @@ mod test {
"tokenAmount": {
"uiAmount": 0.42,
"decimals": 2,
"amount": "42"
"amount": "42",
"uiAmountString": "0.42",
}
})
}