MathNodes / meile-gui

Meile dVPN GUI for Linux, OS X, and Windows - Powered by the Sentinel Network
https://meile.app
GNU General Public License v3.0
36 stars 6 forks source link

[0.15 XMR BOUNTY] Format Deposit Amount in Subscription Cards to be Coin Units #43

Closed MathNodes closed 1 year ago

MathNodes commented 1 year ago

Currently the units to show the amount of deposit in is udvpn or uscrt , etc. We are offering up a bounty to whomever can format these deposits to be in the full coin unit. Basically taking the deposit and dividing by 1000000.

The code to be edited will be in src/ui/screens.py and the class is SubscriptionScreen and the place to do the formatting will be in the in the add_sub_rv_data() routine.

node[NodeKeys.FinalSubsKeys[4]]

is the variable that contains the deposit value. A little regex and separating the numeric values from the alphabetic values in order to use the SATOSHI constant in src/typedef/konstants.py to divide the above deposit variable by.

That should pretty much explain everything needed to be done. We are here to help in case this wasn't enough information.

Bounty#3