Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PERI Finance - update contract addresses of existing chains and add 3 additional chains to TVL #11600

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richard-nend
Copy link

Changes

  1. Updated contract addresses of existing networks such as Ethereum, BSC, and Polygon.
  2. Added 3 additional networks to TVL including Base, Moonbeam, and Moonriver.

@llamatester
Copy link

The adapter at projects/perifinance exports TVL:

polygon                   2.93 M
bsc                       846.26 k
base                      566.20 k
moonbeam                  157.19 k
ethereum                  75.93 k
moonriver                 4.68 k

total                    4.58 M 

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 12, 2024

@richard-nend thanks for the PR, I have refactored it here: #11607

but it is not very clear to me, how is pUSD minted and why are we taking 4 * supply as tvl

@g1nt0ki g1nt0ki self-assigned this Sep 12, 2024
@richard-nend
Copy link
Author

richard-nend commented Sep 12, 2024

That's because pUSD is minted as much as 25% of the staked PERI value, meaning the value of minted pUSD is one-fourth of the value of locked PERI.

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 12, 2024

but I dont see PERI tokens locked (by users) on ethereum in any contract, also, if the minted value is 1/4th of PERI why are we not pricing it in PERI but instead in USD?

@richard-nend
Copy link
Author

richard-nend commented Sep 12, 2024

PERI tokens are locked in the user's wallet, not in the contract. Since 1/4 of USD value in PERI is minted as pUSD, we should price it in USD. It works just like Synthetix V1, V2. SNX tokens are locked in the user's wallet. So, basically if you mint 100 pUSD, 400 USD worth PERI tokens are locked in the wallet.

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 12, 2024

the project has mcap of 3.8m on polygon, and you are claiming users have locked 2.93M of that? for example, this address has 1.6m worth tokens but has never interacted with any smart contract ever https://polygonscan.com/token/0xdc0e17eae3b9651875030244b971fa0223a1764f?a=0xc882b111a75c0c657fc507c04fbfcd2cc984f071

@richard-nend
Copy link
Author

richard-nend commented Sep 12, 2024

The total supply on each connected network works differently in PERI tokens. The total supply means the issued supply on each chain. Since we have a proprietary Bridge in place, the tokens are moved around the chains. By looking at the top 5 holders on Polygon, you can easily see the sum of tokens held by the top 5 holders surpasses the total supply. So, more than half of the tokens issued on Ethereum are now on Polygon. What's the issue here? We haven't updated DefiLlama's TVL script for quite a long time while updating the smart contracts on Ethereum, BSC, and Polygon. which may raise some questions. I understand. But, the logic is as it has been. All I updated were the contract addresses and added 3 more chains.

@g1nt0ki
Copy link
Member

g1nt0ki commented Sep 13, 2024

hi @richard-nend the issue is, it is not very clear to me where the locking is happening/what is counted as tvl.

how does the protocol work? if users are locking in their own wallet, can they get slashed if pUSD depegs? I keep seeing this inflationMint but dont understand what it does.

Yes, you are already listed, but if methodology is wrong, we need to correct it regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants