From 9733fd807ca3c878deb32996fe5b6aa801b4fc06 Mon Sep 17 00:00:00 2001 From: arrland <142511376+arrland@users.noreply.github.com> Date: Fri, 16 Aug 2024 17:47:54 +0200 Subject: [PATCH] Add Arrland adapter (#11214) * 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 --- projects/arrland/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 projects/arrland/index.js diff --git a/projects/arrland/index.js b/projects/arrland/index.js new file mode 100644 index 000000000000..737a9c718247 --- /dev/null +++ b/projects/arrland/index.js @@ -0,0 +1,17 @@ + +const { stakings } = require("../helper/staking"); +const { pool2s } = require("../helper/pool2"); + +const stakingAddresses = ["0x111e34bA90D1dE9a2A57f987b5711C71FA4c0Fa0"]; +const stakingToken = "0x14e5386f47466a463f85d151653e1736c0c50fc3"; +const pool2StakingAddresses = ["0xEAf6E84B4E4C2Ce70a80fd781B6A7f177E7b60F5", "0xb94380939A15C574FE22B04FC95Ec5CCaAD783b8"]; +const lpTokens = ["0x6495b61b8088a0a82de737ffb142136119b016e6", "0x464b7eb1c66d662e652dfbfced35d465498ad9ac"]; + +module.exports = { + polygon: { + tvl: () => 0, + staking: stakings(stakingAddresses, stakingToken, "polygon"), + pool2: pool2s(pool2StakingAddresses, lpTokens, "polygon") + }, + methodology: "Counts total value locked as the $RUM token staking, LP token staking", +} \ No newline at end of file