[NMA-1032] (CrowdNode) Withdraw - #918
Conversation
| val maxPermil = ApiCode.WithdrawAll.code | ||
| val requestPermil = min(amount.value * maxPermil / balance.value, maxPermil) |
There was a problem hiding this comment.
Is "mil" 1000th or 0.1%?
There was a problem hiding this comment.
One per mil is 1/1000 or 0.1%: https://en.wikipedia.org/wiki/Per_mille
| enum class ApiCode(val code: Long, val isRequest: Boolean = false) { | ||
| PleaseAcceptTerms(2, true), | ||
| WelcomeToApi(4, true), | ||
| DepositReceived(8, true), | ||
| WithdrawalQueue(16, true), | ||
| WithdrawAll(1000, false), | ||
| SignUp(131072, false), | ||
| AcceptTerms(65536, false), | ||
| MaxCode(131072, false) | ||
| } No newline at end of file |
There was a problem hiding this comment.
good to see all these constants in one place.
| private fun isPowerOfTwo(number: Long): Boolean { | ||
| return number and number - 1 == 0L | ||
| } |
There was a problem hiding this comment.
This is a very cool formula.
| <string name="send_coins_fragment_hint_dusty_send">จำนวนเงินน้อยเกินไปที่จะส่ง</string> | ||
| <string name="send_coins_fragment_hint_insufficient_money">ยอดเงินไม่เพียงพอ</string> | ||
| <string name="send_coins_error_dusty_send">จำนวนเงินน้อยเกินไปที่จะส่ง</string> | ||
| <string name="send_coins_error_insufficient_money">ยอดเงินไม่เพียงพอ</string> |
There was a problem hiding this comment.
Luckily the memory function of Transifex will handle this change.
There was a problem hiding this comment.
Though I see that these strings are actually moved to common -- which is also fine. The translation update after this will also move all other languages for these strings to common.
HashEngineering
left a comment
There was a problem hiding this comment.
great. some comments left, but no changes are required.
…oled surface dash-sdk-android 0.1.0-v41int18 -> v41int19 (platform#4329 pooled funding on rust-dashcore 8f26456b: ALL_SPENDABLE account type through Rust/FFI/JNI/Kotlin, sendToAddresses/buildSignedPayment defaults flipped; carries #931 dedup, #915, #925 add_funding, #929 contact-account funding, #918 AddressState). CoreSendAllNative migrates off the v1 split surface (#4323 deprecated setFunding$sdk_release/buildSigned$sdk_release — the split is not concurrency-safe): the drain now runs new -> addOutput -> setSelectionStrategy(ALL) -> finalizeAtomic$sdk_release (atomic select+reserve+sign under the wallet-manager lock) -> ManagedCoreWallet .broadcastTransaction(FinalizedCoreTransaction). The user-facing send-all now drains the pooled ALL_SPENDABLE set (BIP44 + BIP32 + every DashPay receival account in ONE transaction); the CoinJoin drain stays pinned to the COIN_JOIN account — de-mixing remains a separate, explicit flow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
We want an ability to withdraw DASH from CrowdNode.
Issue being fixed or feature implemented
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: