My project for Hackaton Smart Dashboard | The LAMP

Hello! @malik said that I can tell you about my project here.

I made it myself for the Moralis hackathon. But by June 15th there was a very raw version with a lot of bugs. I am working on the project alone, so it took about week to finalize the project.(But currently functional of getting notofications in telegram is disabled)

I want to introduce you The LAMP DeFi cross-chain Dasshboard.
The LAMP Finance aggregates DeFi protocols and cryptocurrencies on Binance, Ethereum and Polygon (Matic) Blockchains. Users can track cross-chain their token balances in wallets and assets, which were deposited to liquidity pools, farm and staking programs. Also it provides extra information such as impermanent loss, transactions info etc., because of ability to receive historical data. Prices are taken from the 1inch aggregator.

Now it supports Liquidity Pools of PancakeSwap(BSC), Biswap(BSC), ApeSwap(BSC) and Polycat (Polygon). But I am improving the project, I plan to add many DeFi projects from different blockchains. More statistics info for users and functionality coming soon.

I will be very happy to receive feedback and answer your questions.

LInks:
Site: https://www.thelamp.finance
Twitter: https://twitter.com/lampfinance



2 Likes

Hi @Yomoo,

This is pretty insane! Good luck with this amazing product :clap:

Although I tried connecting my Ethereum main net wallet, but I couldn’t get my asset allocation data.

Perhaps a little bug I caught for ya :stuck_out_tongue:

Keep up the awesome work.

Cheers! :slight_smile:

1 Like

Thanks. Yes, this bug is most likely due to the fact that you visited the site for the first time (I already know how to fix it). If you refresh the page, the problem disappears?

Yes, It shows values now. :slight_smile:

Your project looks great! Would it be alright if i dm’d you some questions? Thank you!

Hello. Of course, I will be very happy to answer your questions.

Excellent! Is there a way to dm you on here? I can’t find any contact info.

[email protected] or DM me your telegram

I received your email. But it will be more convenient for me to answer your question here. As reference you can use the code from I CLONED ZERION IN 20 MINUTES

But instead of using CoinGecko API use 1inch.

for (var i = 0; i < tokens.length; i++) {
        const token = tokens[i].token_address;
        if (token !== "0x6b175474e89094c44da98b954eedeac495271d0f") {
          urls.push(
            `https://api.1inch.exchange/v3.0/1/quote?fromTokenAddress=${token}&toTokenAddress=0x6b175474e89094c44da98b954eedeac495271d0f&amount=${Math.pow(
              10,
              tokens[i].decimals
            )}`
          );
        } else {
          urls.push(
            `https://api.1inch.exchange/v3.0/1/quote?fromTokenAddress=${token}&toTokenAddress=0x4fabb145d64652a948d72533023f6e7a623c7c53&amount=${Math.pow(
              10,
              tokens[i].decimals
            )}`
          );
        }
      }
      const urlsFiltered = Array.from(new Set(urls));
      Promise.all(
        urlsFiltered.map((url) =>
          fetch(url).then((resp) => {
            if (resp.status === 400) {
              return null;
            }
            if (resp.status === 200) {
              resp = resp.json();
              return resp;
            }
          })
        )
      )

Of course its better to use something like forEach instead of for (var i = 0; i < tokens.length; i++) {, but it does not matter for me

Hi Yomoo,

I tried your Dasshboard and I really like it. Just for fun I did something similar and included some cross chain swap functionality.

Here you can find a video showing a swap from Ethereum to Polygon and back.

https://drive.google.com/drive/folders/1rTu8LJScxx9SZpRcmjpusu-lvLtiGALV

I think this could give a good startingpoint for managing funds cross chain.Do you have plans to also include such functionality?

Best regards

Henning

Hey @henmeh

Great work. Awesome project :sunglasses:

Yeah, it’s on the roadmap :man_factory_worker: