GithubHelp home page GithubHelp logo

balance-io / old-balance-ios Goto Github PK

View Code? Open in Web Editor NEW
49.0 15.0 16.0 47.88 MB

Balance in Swift

License: GNU General Public License v3.0

Swift 97.75% Ruby 2.12% Shell 0.13%
ethereum swift ios app wallet walletconnect

old-balance-ios's Introduction

Balance for iOS - An interface for the open source financial system

Community

TestFlight: https://testflight.apple.com/join/02cARQQL

Discord Chat: https://discord.gg/xCtf2wN

Twitter: http://twitter.com/balance_io

Getting Started

  1. Download XCode: https://developer.apple.com/xcode/
  2. Install Cocoapods: https://cocoapods.org/
  3. Run pod install

Contributing

The biggest 3 issues are pinned to the top: https://github.com/balance-io/balance-ios/issues

The best issues to start with are here: https://github.com/balance-io/balance-ios/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22

Master - Release versions for Apple

Develop - Working version of the app

Branches - Features being worked on

Designs

Figma: https://www.figma.com/file/bJROupXp1iGJaqGIr0cmqGVk/balance-watchlist?node-id=0%3A1

old-balance-ios's People

Contributors

alvesjtiago avatar borwahs avatar einsteinx2 avatar jamierumbelow avatar ricburton avatar samellenrider avatar wolffan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

old-balance-ios's Issues

💰 Account for PETH in the formula

Currently the PETH rate is not accounted for. See example and fix below.

img_0003

Here is how I think it should be:

from web3.auto import w3
from pymaker import Address
from pymaker.sai import Tub

tub = Tub(web3=w3, address=Address('0x448a5065aebb8e423f0896e6c5d525c040f59af3'))
cup = tub.cups(3228)

tag = tub.tag()  # peth/usd
per = tub.per()  # eth/peth
mat = tub.mat()  # liquidation ratio

ink = cup.ink  # collateral in peth
eth = tag * per  # collateral in eth
usd = cup.ink * tag  # collateral in usd
art = cup.art  # drawn dai

price = tag / per  # eth price in usd
rekt = (cup.art * mat)  / (cup.ink * per)  # liquidation price in usd
col = cup.ink * tag / cup.art * 100  # collateralization percent

Reference data:

cdp 3228
   tag 135.67
   per 1.0408678
   mat 1.5
   ink 41500
   eth 43196  # balance shows ink here
   usd 5630168.47  # balance shows 5 409 110 here
   dai 3432000
   col 164.04%
  rekt 119.17
 price 130.34

The fix:

  • Multiply ETH collateral by per
  • Multiply USD collateral by per

👨‍💻 @whuttheeperson’s feedback on Maker Rocket Chat

Hey Ric,

New Balance wallet looks awesome.

A few thoughts.

  • On the CDP dashboard mainscreen, before you expand the CDPs, It would be nice to know the ETH amount locked up as collateral, not just the USD.

  • I'm not sure what the 'position' is referring to, it seems to be the ETH price divided by something I'm not sure what.

  • When expanding the individual CDP, I'm not sure what the coloured bar below means. (Just realized it shows the 'toggle thing' at the end, to me it just looked like it was cut off, only noticed it when opening 3228's CDP)

  • I'm not sure the 1.00 USD multiplying the Dai adds a lot of value for me, nor does the Eth price * Eth value with no USD output.

  • It would obviously be amazing if you were able to interact with the CDPs somehow as in Draw or repay Dai, although that would be challenging as I imagine many people use hardware wallets for their larger amounts of assets to draw on.

  • I noticed when you check out a CDP in danger like 3228 it shows the collateralization ratio (171%) in the top corner of the CDP on the CDP homescreen, yet doesn't list it for my CDP which isn't in danger. It would be nice if it listed them for each one.

  • It would also be cool to have an ERC20 dashboard

Also checked out your podcast with Pomp today, nice job!

📲 Pop up issues

When clicking on a cdp the window pops up with more detailed information. To close that window you must swipe the window down. I would allow swiping up to close the window an in particular I would also allow tapping somewhere outside the window to close it.

Another thing that I noticed is that when I open a window and tap above the window you should have a cdp in the background. If that cdp # is not the same as the one you’re currently looking at it will open that cdp.

Private DM on twitter.

👨‍💻 @banteg's feedback on MakerDAO Telegram

https://t.me/makerdaoofficial

even in this prototype form it's a super useful tool. all other features i can imagine fall under "nice to have" category. some of them are:

  • naming a cdp
  • simulating adding/removing collateral/debt. for example, i'm usually interested what would my liquidation price be if i draw some dai, sell it for eth and add it to the cdp. maybe this can be cleverly integrated in the risk indicator making it interactive.
  • add eth or payback dai for someone else

Update README with new developer info and style rules

We should include info about how to get started with the project, dealing with keys, branch naming, CLA, etc plus some info on preferred code style to keep things consistent or the code will get messy real quick.

💵 $0 --> $0.00

Reformat any 0 number to 0. Make sure if the data is not available it is set to —.

It scares me when I see $0 and the reality is that the API has failed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.