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

Add Arrland adapter #11214

Merged
merged 5 commits into from
Aug 16, 2024
Merged

Add Arrland adapter #11214

merged 5 commits into from
Aug 16, 2024

Conversation

arrland
Copy link
Contributor

@arrland arrland commented Aug 6, 2024

Name: Pirates of the Arrland
Twitter Link: https://x.com/ArrlandNFT
List of audit links if any: https://github.com/solidproof/projects/tree/main/2024/Arrland
https://skynet.certik.com/projects/arrland
https://github.com/solidproof/projects/tree/main/2024/Pirates%20of%20the%20Arrland
Website Link: https://arrland.com/
Logo (High resolution, will be shown with rounded borders): https://imgur.com/WelrkvN.png
Current TVL:

--- polygon-staking ---
RUM 928.9489624865132
Total: 928.9489624865132

--- polygon-pool2 ---
RUM 11.11 k
WMATIC 9.15 k
USDT 1.97 k
Total: 22.23 k

--- polygon ---
USD+ 51.66 k
Total: 51.66 k

--- staking ---
RUM 929
Total: 928.9489624865132

--- pool2 ---
RUM 11.11 k
WMATIC 9.15 k
USDT 1.97 k
Total: 22.23 k

--- tvl ---
USD+ 51.66 k
Total: 51.66 k

------ TVL ------
polygon 51.66 k
polygon-pool2 22.23 k
pool2 22.23 k
polygon-staking 929
staking 929

total 51.66 k

Treasury Addresses (if the protocol has treasury) - None
Chain: Polygon
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): "arrland-rum"
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): 24789
Short Description (to be shown on DefiLlama): Pirates of the Arrland is a Play2Earn competetive 3D game project combining DeFi and on-chain farming.
Token address and ticker if any: 0x14E5386f47466A463f85D151653E1736c0c50Fc3
Category (full list at https://defillama.com/categories) *Please choose only one: Gaming
forkedFrom (Does your project originate from another project): No
methodology: Counts total value locked on Pirate NFTs staked, the token staking, LP token staking
Github org/user (Optional, if your code is open source, we can track activity): https://github.com/arrland

CryptoGartus and others added 2 commits August 6, 2024 17:58
Twitter Link: https://x.com/ArrlandNFT
List of audit links if any: https://github.com/solidproof/projects/tree/main/2024/Arrland
https://skynet.certik.com/projects/arrland
https://github.com/solidproof/projects/tree/main/2024/Pirates%20of%20the%20Arrland
Website Link: https://arrland.com/
Logo (High resolution, will be shown with rounded borders): https://imgur.com/WelrkvN.png
Current TVL:

--- polygon-staking ---
RUM                       928.9489624865132
Total: 928.9489624865132

--- polygon-pool2 ---
RUM                       11.11 k
WMATIC                    9.15 k
USDT                      1.97 k
Total: 22.23 k

--- polygon ---
USD+                      51.66 k
Total: 51.66 k

--- staking ---
RUM                       929
Total: 928.9489624865132

--- pool2 ---
RUM                       11.11 k
WMATIC                    9.15 k
USDT                      1.97 k
Total: 22.23 k

--- tvl ---
USD+                      51.66 k
Total: 51.66 k

------ TVL ------
polygon                   51.66 k
polygon-pool2             22.23 k
pool2                     22.23 k
polygon-staking           929
staking                   929

total                    51.66 k

Treasury Addresses (if the protocol has treasury) - None
Chain: Polygon
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): "arrland-rum"
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): 24789
Short Description (to be shown on DefiLlama): Pirates of the Arrland is a Play2Earn competetive 3D game project combining DeFi and on-chain farming.
Token address and ticker if any: 0x14E5386f47466A463f85D151653E1736c0c50Fc3
Category (full list at https://defillama.com/categories) *Please choose only one: Gaming
forkedFrom (Does your project originate from another project): No
methodology: Counts total value locked on Pirate NFTs staked, the token staking, LP token staking
Github org/user (Optional, if your code is open source, we can track activity): https://github.com/arrland
@llamatester
Copy link

The adapter at projects/arrland exports TVL:

polygon                   51.92 k
polygon-pool2             22.23 k
pool2                     22.23 k
polygon-staking           929
staking                   929

total                    51.92 k 


module.exports = {
polygon: {
tvl,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, we cant count staked NFT as tvl, other projects have requested the same and we said no to them as well. Atm, the only NFTs we price are those with chainlink oracle support on Ethereum

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed new update

Update TVL calculation for Arrland on Polygon

  • Remove custom TVL calculation based on NFT floor price
  • Simplify TVL calculation using sumTokensExport helper
  • TVL now counts $RUM tokens locked in LP staking contracts
  • Update methodology description to reflect new calculation method

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @arrland RUM locked in LP staking contracts are reward of LP providers right? why is it marked as tvl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@g1nt0ki reward for LP staking is not tvl ?

Ok will remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@g1nt0ki now tvl is 0

@g1nt0ki g1nt0ki self-assigned this Aug 7, 2024
- Remove custom TVL calculation based on NFT floor price
- Simplify TVL calculation using sumTokensExport helper
- TVL now counts $RUM tokens locked in LP staking contracts
- Update methodology description to reflect new calculation method
@llamatester
Copy link

The adapter at projects/arrland exports TVL:

polygon-pool2             36.02 k
pool2                     36.02 k
polygon                   21.95 k
polygon-staking           2.25 k
staking                   2.25 k

total                    21.95 k 

- Remove sumTokensExport helper for TVL calculation
- Set TVL to return 0
- Update methodology to reflect the simplified TVL calculation
@llamatester
Copy link

The adapter at projects/arrland exports TVL:

polygon-pool2             40.27 k
pool2                     40.27 k
polygon-staking           3.78 k
staking                   3.78 k
polygon                   0

total                    0 

@g1nt0ki g1nt0ki merged commit 9733fd8 into DefiLlama:main Aug 16, 2024
1 check passed
@g1nt0ki
Copy link
Member

g1nt0ki commented Aug 16, 2024

@arrland thanks for fixing it

0xIvan pushed a commit to 0xIvan/DefiLlama-Adapters that referenced this pull request Sep 11, 2024
* Name: Pirates of the Arrland
Twitter Link: https://x.com/ArrlandNFT
List of audit links if any: https://github.com/solidproof/projects/tree/main/2024/Arrland
https://skynet.certik.com/projects/arrland
https://github.com/solidproof/projects/tree/main/2024/Pirates%20of%20the%20Arrland
Website Link: https://arrland.com/
Logo (High resolution, will be shown with rounded borders): https://imgur.com/WelrkvN.png
Current TVL:

--- polygon-staking ---
RUM                       928.9489624865132
Total: 928.9489624865132

--- polygon-pool2 ---
RUM                       11.11 k
WMATIC                    9.15 k
USDT                      1.97 k
Total: 22.23 k

--- polygon ---
USD+                      51.66 k
Total: 51.66 k

--- staking ---
RUM                       929
Total: 928.9489624865132

--- pool2 ---
RUM                       11.11 k
WMATIC                    9.15 k
USDT                      1.97 k
Total: 22.23 k

--- tvl ---
USD+                      51.66 k
Total: 51.66 k

------ TVL ------
polygon                   51.66 k
polygon-pool2             22.23 k
pool2                     22.23 k
polygon-staking           929
staking                   929

total                    51.66 k

Treasury Addresses (if the protocol has treasury) - None
Chain: Polygon
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): "arrland-rum"
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): 24789
Short Description (to be shown on DefiLlama): Pirates of the Arrland is a Play2Earn competetive 3D game project combining DeFi and on-chain farming.
Token address and ticker if any: 0x14E5386f47466A463f85D151653E1736c0c50Fc3
Category (full list at https://defillama.com/categories) *Please choose only one: Gaming
forkedFrom (Does your project originate from another project): No
methodology: Counts total value locked on Pirate NFTs staked, the token staking, LP token staking
Github org/user (Optional, if your code is open source, we can track activity): https://github.com/arrland

* Update TVL calculation for Arrland on Polygon

- Remove custom TVL calculation based on NFT floor price
- Simplify TVL calculation using sumTokensExport helper
- TVL now counts $RUM tokens locked in LP staking contracts
- Update methodology description to reflect new calculation method

* Refactor TVL calculation for Arrland on Polygon

- Remove sumTokensExport helper for TVL calculation
- Set TVL to return 0
- Update methodology to reflect the simplified TVL calculation

---------

Co-authored-by: Dominik Szopa <[email protected]>
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.

4 participants