Giter Club home page Giter Club logo

anchor-web-app's People

Contributors

chinoman10 avatar cosullivan avatar csiejoey avatar etienne-napoleone avatar euijoon-lee avatar francyesco avatar hanjukim avatar jonathanchowjh avatar kevinhankpark avatar kjessec avatar mandrean avatar martinyung avatar maxxb95 avatar mbeliou avatar msntcs avatar radzionc avatar sharvit avatar simke9445 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  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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anchor-web-app's Issues

Feat. Req.: Local currency conversion (display only)

Suggestion that came in on Discord:
The same way that we can see how much our UST is worth in the local currency (EURO/EUT, etc.) inside Terra Station, display the same kind of feature on the Anchor Web App, so we can see how much our deposits, collaterals, etc. are worth.

Unable to borrow

I've attempted to borrow as a test but keep getting this error code

Error ID: 162b1b1dff3e4513848d073f7d6e0821

I'm connecting via my Nano S Ledger which has been fine with Terra Station

Feat. Req.: Enable browser notifications for liquidation warnings/notifications

Hi there,
Following a conversation on Discord, I feel like adding browser notifications to users who are about to be liquidated (LTV>40 or 45%) or when they are liquidated would be a very nice-to-have feature. Provided of course that they have a tab open with the Anchor web app to ensure that the app running locally is updated in real-time.
While it's possible that the future mobile app will feature such functionalities, adding more to the web one would be great regardless.

Show aUST used as collateral in Anchor EARN

It would be great to show the current value of the aUST holdings on a wallet on Anchor EARN that are used as collateral on Mirror. After posting several charts and videos on Twitter and YouTube, I received a lot of feedback that their aUST is gone. This was connected to the feat, that the aUST would also no appreciated anymore. But, of course, this is a matter of education. Anyway, I personally agree that an overview of the current aUST would be helpful.

This is probably than connected to an issue of withdrawing on the EARN tab. A figure showing the aUST bonded as collateral and the aUST free for a withdraw would be optimal. Thanks and Best! Danku

Withdraw transaction not substracting fees from withdrawn amount.

Not sure how the format for issues/enhancements should be.

Description

When trying to withdraw deposited UST there is an issue where I get the error "Not enough transaction fees" at the top of the modal. Also I get the error "Not enough UST" below the Amount control. I assume the transaction is trying to get the fees paid from the actual UST wallet in terra, not the withdrawn amount (which in my case it does not cover the fee amount). The problem I see is that the "Tx Fee" and "Amount Received" controls clearly display the numbers as if the UST fees were going to be subtracted from the withdrawn amount, so if that were the case I should not be receiving the error and should be able to withdrawn the money.

If my assumption is right and the UST fees are only to be paid from the UST wallet (not the withdrawn amount) then I believe the "Amount Received" control should display the total amount to be withdrawn not the amount minus the fees. Also, maybe the error message can read something a little more descriptive like "Not enough balance in your wallet to pay for transaction fees" or something that intuitively let the user know that the fees are paid from terra UST wallet and not from the withdrawal amount.

If my assumption is wrong and the UST fees are to be paid from the withdrawal amount then there is a bug preventing the user from withdrawing funds from anchor (which is pretty alarming).

Steps to reproduce issue.

  • With positive balance deposited on anchor click on "Withdraw" button on Earn main page.
  • Click the max link that automatically fills the withdrawal amount to the max deposited UST.
  • Get error message "Not enough transaction fees" at the top of the modal and get "Not enough UST" error below the amount control.
  • NOTE: The deposited amount to be withdrawn is way more than the transaction fee.

Instant Burn Web-App errors

Issue 1: Fees are miscalculated to be 3% instead of 0.05% charged by astroport, station-web-app displays the correct fees (green text in image).

Issue 2: Price quote in the summary has the names flipped (red text in image).

Screen Shot 2022-01-29 at 9 33 25 PM

Deposit issue at Anchor

My deposit page at Anchor is zero. Why it happened? I just sell some Lunas that having nothing to see with bLunas I provided.

How to run web app

Is there a guide how to actually get this running? for example do we use pm2, what is the node file to start, what are nginx config settings

[BORROW/REPAY] transaction fail when repaying loan

Step to reproduce:

Bond bluna
borrow just on your bluna deposit
try to repay the loan

==> I get the following error message : Transaction failed: The transaction requested has failed due to the following reason:

account sequence mismatch, expected 222, got 221: incorrect account sequence

Performance check

  • Heap memory accumulation
  • Frames drop with low performance simulation
  • Abnormal layout reflow

Historical Earn APY displayed incorrectly

Problem
The historical APY in the Earn interest section shows today's date (eg: Sep 12, 2021) on all slider values. Looking at the network tab I can see these values fetched from the https://mantle.anchorprotocol.com/?earn--apy-history endpoint.

{
    "apyHistory": [
        {
            "DepositRate": "0.000000041816843557",
            "Height": 4498946,
            "Timestamp": 1631452797
        },
        {
            "DepositRate": "0.000000041816843557",
            "Height": 4498424,
            "Timestamp": 1631449190
        },
        {
            "DepositRate": "0.000000041833331018",
            "Height": 4497901,
            "Timestamp": 1631445583
        },
        {
            "DepositRate": "0.000000041833331018",
            "Height": 4497379,
            "Timestamp": 1631441980
        },
        {
            "DepositRate": "0.000000041833331018",
            "Height": 4496858,
            "Timestamp": 1631438377
        },
        {
            "DepositRate": "0.000000041833331018",
            "Height": 4496335,
            "Timestamp": 1631434775
        },
        {
            "DepositRate": "0.000000041637400716",
            "Height": 4495810,
            "Timestamp": 1631431173
        },
        {
            "DepositRate": "0.000000041637400716",
            "Height": 4495287,
            "Timestamp": 1631427571
        },
        {
            "DepositRate": "0.000000041637400716",
            "Height": 4494764,
            "Timestamp": 1631423966
        }
    ]
}

Parsing the timestamps using new Date(timestamp * 1000) as done in the InterestSection.tsx I get that the timestamps are from today's date, each an hour apart.

Proposed solution
If possible the values fetched should be from previous days and not hours. Otherwise, the time should also be included in the slider label (eg: 13h, Sep 12, 2021). Ideally a larger historical view is shown (past 50, 100 or 1000 days).

Docs: More documents and comments

Documents

  • Yarn 2.0 guide (update yarn to latest version)
  • Project directory structure (app, base, landing, packages...)
  • Guide discord channel (ask to Seoyeon about these packages)

Comments

  • Add comments to reusable packages/* sources

...

Data is being dropped from Anchor claim reward transactions

Originally filed at terra-money/finder#70, but the issue may be on the Anchor side, so filing here also.

This is an example of claiming rewards from the Anchor Govern tab. Inspecting the transaction in Terra Finder shows that data is being dropped regarding the reward value. Looks like the entire from_contract event log is missing.
Screen Shot 2021-04-22 at 6 49 54 AM
Screen Shot 2021-04-22 at 6 48 06 AM

Here is an example of an Anchor claim reward tx that contains the data:
Screen Shot 2021-04-22 at 6 46 20 AM
Screen Shot 2021-04-22 at 6 46 52 AM

This likely is not the right repo for this issue, as this seems like a data problem, so please transfer this issue to the proper repo if appropriate. Thank you.

Anchor Protocol Missing Liquidity

Hello,

I executed below transaction:
Tx 81E21D2EC5499F678986BABC25019025219F3E8E12F8EC683AFAD810DD27CD3C
to the Anchor Liquidity Pool today at 1:13 eastern time.

The liquidity appeared in Anchor Protocol as a pool balance as expected. Later today when I checked the pool balance it was $0.00. There is no record of a withdrawal transaction or trace of the funds that I can find.

Please assist if possible-
Thank you!

Error on LP withdrawal

I am getting this error in transaction on anchor webapp. Any ideas?

Error ID: 75ec5e66cefa4baf9ac3eaed2eb99d8f

Expected interest earnings for Month/Week/Day calculated incorrectly.

It looks like the Monthly/weekly/daily earnings are simply calculated by taking the expected interest in APY for the year and dividing by 12/52/365. This is incorrect as the interest rate displayed is APY, meaning it compounds/accelerates over time
meaning just dividing is going to make the interest appear linear, which is not how it works in reality.

For example, if my balance is $1000, and the APY is 19.49%, the APR is 17.78%, which means the daily earnings should be $0.487 ((1000*.1778)/365).

Instead, the earn page will show $0.534 ((1000*.1949)/365), making it off by a significant margin.

Where can Anchor loan liquidation transactions be found?

These transactions and their respective data (amount of bLuna liquidated, timestamp, amount of loan payed down, etc.) are important for calculating taxable gains/losses. As far as I can tell, these transactions are not surfaced in terra finder. Where is this data, and how can the end user view it? thanks.

Error on testnet claim rewards

error claim rewards

hello. probably this never happen, but sometimes could. this happen in testnet. the claim reward show this error and dont let me claimed. i dont know if could be the amount of reward. there is any support for testnet for things like this?.

regards.

Feature: Manual wallet setting without Chrome Extension

Goal

  • Update wallet-provider
    • Add status view
      • provide walletAddress
      • but, can't send transaction
    • Merge { walletReady, availableService } = useService()
      • provide { connectedUserWallet, userWallet } = useWallet()
      • connectedWallet is exists when the Chrome Extension is connected
      • userWallet is exists when the user wallet address is provided by Chrome Extension or User manual configuration
      • userWallet > connectedWallet : User manual configuration is higher order than Chrome Extension info
  • All status of Proceed buttons and Queries depends on the connectedWallet and userWallet

Web App Failing Out the Box

Running yarn install after clone gives me

error An unexpected error occurred: "Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in /Users/Adham1/Desktop/repos/anchor-web-app/yarn.lock

Screen Shot 2022-01-25 at 8 37 37 PM

Tried deleting the yarn.lock, reinstalling packages, and then ran yarn run app:start
and got (yes i tried running yarn install again)

Internal Error: root-workspace-0b6124@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile

Screen Shot 2022-01-25 at 8 41 34 PM

Please help

Add back the Interest Earned section

Hey there! ๐Ÿ‘‹

Since we do not have access to your Trello Board, we do not know the reason why the Interest Earned section has been removed from the UI (code is still there).

Commit: becc666

I believe it can still be useful to display this information as a note, like it has been done with the liquidation price of bLuna (84e03f7 & 3f38852).

No memo field in anchor app wallet send modal

In the discord channel, i realise some user did not put in the memo when sending to wallet in exchanges. One of the reason is because there is no memo field in the anchor app wallet send modal

wallet-send-modal

in the MIR wallet, there is no memo field too but there is a warning saying Double check if the above transaction requires a memo.

I would like to discuss here whether this is already in the roadmap or is there any reason why the memo field is not present?

I would love to contribute to the fix once we have a conclusion on the solution. thank you

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.