Feat/improve staking page #1254
QA.yaml
on: pull_request
Tests
1m 20s
ESLint
58s
TypeScript
1m 20s
Prettier
44s
Unused Files, Deps, Exports
32s
E2E
0s
Annotations
4 errors and 5 warnings
src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx > useGetStrategies > should return strategy data:
apps/evm/src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx#L270
AssertionError: expected [ { meta: { …(5) }, …(5) } ] to deeply equal [ { meta: { …(5) }, …(4) } ]
- Expected
+ Received
Array [
Object {
"contract": Object {
"address": "0x98649858a2d008410cb3bc6533fc2571905c456d",
"chain": Object {
"chainId": 60808,
"id": "",
"logo": "",
"name": "bob",
"singleChainStaking": true,
"singleChainSwap": true,
"slug": "bob",
"type": "evm",
},
"id": "bedrock-unibtc",
"inputToken": Object {
"address": "0x03c7054bcb39f7b2e5b2c7acb37583e32d70cfa3",
"chain": "bob",
"decimals": 8,
"logo": "https://ethereum-optimism.github.io/data/WBTC/logo.svg",
"symbol": "WBTC",
},
"integration": Object {
"logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
"monetization": false,
"name": "Bedrock (uniBTC)",
"slug": "bedrock-unibtc",
"type": "staking",
},
"method": "",
"outputToken": Object {
"address": "0x236f8c0a61da474db21b693fb2ea7aab0c803894",
"chain": "bob",
"decimals": 8,
"logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
"symbol": "uniBTC",
},
"type": "deposit",
},
"currency": Token {
"address": "0x236f8c0a61da474db21b693fb2ea7aab0c803894",
"chainId": 60808,
"decimals": 8,
"isNative": false,
"isToken": true,
"name": "uniBTC",
"projectLink": undefined,
"symbol": "uniBTC",
},
- "meta": Object {
- "logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
- "monetization": false,
- "name": "Bedrock (uniBTC)",
- "slug": "bedrock-unibtc",
- "type": "staking",
- },
- "tvl": 38511855.54853,
- "userStaked": CurrencyAmount {
+ "deposit": Object {
+ "amount": CurrencyAmount {
"currency": Token {
"address": "0x236f8c0a61da474db21b693fb2ea7aab0c803894",
"chainId": 60808,
"decimals": 8,
"isNative": false,
"isToken": true,
"name": "uniBTC",
"projectLink": undefined,
"symbol": "uniBTC",
},
"decimalScale": 100000000n,
"denominator": 1n,
"numerator": 10000n,
+ },
+ "usd": 9.1,
+ },
+ "info": Object {
+ "breakdown": Array [
+ Object {
+ "currency": ERC20Token {
+ "address": "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3",
+ "chainId": 60808,
+ "decimals": 8,
+ "isNative": false,
+ "isToken": true,
+ "name": "Wrapped BTC",
+ "projectLink": undefined,
+ "symbol": "WBTC",
+ },
+ "logoUrl": "https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",
+ },
+ Object {
+ "currency": Object {
+ "address": "0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894",
+ "symbol": "uniBTC",
},
+ "logoUrl": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
+ },
+ ],
+ "description": <Trans
+ id="ISo0QM"
+ message="Stake BTC into Babylon via Bedrock and receive liquid staking token uniBTC."
+ />,
+ "incentives": Array [
+ 2,
+ 4,
+ ],
+ "links": Object {
+ "landingPage": "https://app.bedrock.technology",
+ "manage": "https://app.bedrock.technology/unibtc?network=bob",
+ "securityReview": "https://www.bitcoinlayers.org/infrastructure/bedrock-unibtc",
+ },
+ "name": "Liquid Staking Bedrock-Babylon",
+ "protocol": "Bedrock",
+ "warningMessage": <Trans
+ id="tUiWhR"
+ messa
|
src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx > useGetStrategies > should return tvl value if output token is se* token:
apps/evm/src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx#L336
AssertionError: expected [ { meta: { …(5) }, …(5) } ] to deeply equal [ { meta: { …(5) }, …(4) } ]
- Expected
+ Received
Array [
Object {
"contract": Object {
"address": "0xc8debccfca009f586263d1f1596504b104b22fd2",
"chain": Object {
"chainId": 60808,
"id": "",
"logo": "",
"name": "bob",
"singleChainStaking": true,
"singleChainSwap": true,
"slug": "bob",
"type": "evm",
},
"id": "segment-tbtc",
"inputToken": Object {
"address": "0xbba2ef945d523c4e2608c9e1214c2cc64d4fc2e2",
"chain": "bob",
"decimals": 18,
"logo": "https://ethereum-optimism.github.io/data/tBTC/logo.svg",
"symbol": "tBTC",
},
"integration": Object {
"logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/segment.svg",
"monetization": false,
"name": "Segment (tBTC)",
"slug": "segment-tbtc",
"type": "lending",
},
"method": "",
"outputToken": Object {
"address": "0xd30288ea9873f376016a0250433b7ea375676077",
"chain": "bob",
"decimals": 8,
"logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/segment.svg",
"symbol": "seTBTC",
},
"type": "deposit",
},
"currency": Token {
"address": "0xd30288ea9873f376016a0250433b7ea375676077",
"chainId": 60808,
"decimals": 8,
"isNative": false,
"isToken": true,
"name": "seTBTC",
"projectLink": undefined,
"symbol": "seTBTC",
},
- "meta": Object {
- "logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
- "monetization": false,
- "name": "Bedrock (uniBTC)",
- "slug": "bedrock-unibtc",
- "type": "staking",
- },
- "tvl": 155912.21297652,
- "userStaked": CurrencyAmount {
+ "deposit": Object {
+ "amount": CurrencyAmount {
"currency": Token {
"address": "0xd30288ea9873f376016a0250433b7ea375676077",
"chainId": 60808,
"decimals": 8,
"isNative": false,
"isToken": true,
"name": "seTBTC",
"projectLink": undefined,
"symbol": "seTBTC",
},
"decimalScale": 100000000n,
"denominator": 1n,
"numerator": 10000n,
+ },
+ "usd": 9.1,
+ },
+ "info": Object {
+ "breakdown": Array [
+ Object {
+ "currency": ERC20Token {
+ "address": "0xBBa2eF945D523C4e2608C9E1214C2Cc64D4fc2e2",
+ "chainId": 60808,
+ "decimals": 18,
+ "isNative": false,
+ "isToken": true,
+ "name": "tBTC v2",
+ "projectLink": undefined,
+ "symbol": "tBTC",
+ },
+ "logoUrl": "https://ethereum-optimism.github.io/data/tBTC/logo.svg",
+ },
+ Object {
+ "currency": Object {
+ "address": "0xD30288EA9873f376016A0250433b7eA375676077",
+ "symbol": "seTBTC",
},
+ "logoUrl": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/segment.svg",
+ },
+ ],
+ "description": <Trans
+ id="Xi9Iaz"
+ message="Lend out tBTC on Segment."
+ />,
+ "incentives": Array [
+ 3,
+ 6,
+ ],
+ "links": Object {
+ "landingPage": "https://app.segment.finance",
+ "manage": "https://app.segment.finance/#//market/0xD30288EA9873f376016A0250433b7eA375676077",
+ "securityReview": "https://www.bitcoinlayers.org/infrastructure/threshold-tbtc",
+ },
+ "name": "Lending Segment-tBTC",
+ "protocol": "Segment",
+ },
+ "meta": Object {
+ "logo": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/segment.svg",
+ "monetization": false,
+ "name": "Segment (
|
src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx > useGetStrategies > should return tvl value if no output:
apps/evm/src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx#L382
AssertionError: expected [ { meta: { …(5) }, …(5) } ] to deeply equal [ { contract: { …(8) }, …(3) } ]
- Expected
+ Received
Array [
Object {
"contract": Object {
"address": "0xf5f2f90d3edc557b7ff0a285169a0b194df7b6f2",
"chain": Object {
"chainId": 60808,
"id": "",
"logo": "",
"name": "bob",
"singleChainStaking": true,
"singleChainSwap": true,
"slug": "bob",
"type": "evm",
},
"id": "pell-unibtc",
"inputToken": Object {
"address": "0x03c7054bcb39f7b2e5b2c7acb37583e32d70cfa3",
"chain": "bob",
"decimals": 8,
"logo": "https://ethereum-optimism.github.io/data/WBTC/logo.svg",
"symbol": "WBTC",
},
"integration": Object {
"logo": "",
"monetization": false,
"name": "Pell (uniBTC)",
"slug": "pell-unibtc",
"type": "staking",
},
"method": "",
"outputToken": null,
"type": "deposit",
},
"currency": undefined,
- "tvl": 18519790.86321,
- "userStaked": CurrencyAmount {
+ "deposit": Object {
+ "amount": CurrencyAmount {
"currency": Token {
"address": "0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894",
"chainId": 60808,
"decimals": 8,
"isNative": false,
"isToken": true,
"name": "uniBTC",
"projectLink": undefined,
"symbol": "uniBTC",
},
"decimalScale": 100000000n,
"denominator": 1n,
"numerator": 10000n,
},
+ "usd": 9.1,
+ },
+ "info": Object {
+ "breakdown": Array [
+ Object {
+ "currency": ERC20Token {
+ "address": "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3",
+ "chainId": 60808,
+ "decimals": 8,
+ "isNative": false,
+ "isToken": true,
+ "name": "Wrapped BTC",
+ "projectLink": undefined,
+ "symbol": "WBTC",
+ },
+ "logoUrl": "https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",
+ },
+ Object {
+ "currency": Object {
+ "address": "0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894",
+ "symbol": "uniBTC",
+ },
+ "logoUrl": "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
+ },
+ ],
+ "description": <Trans
+ id="+LQvNm"
+ message="Stake BTC into Babylon via Bedrock, get uniBTC liquid staking token, and deposit into Pell restaking."
+ />,
+ "incentives": Array [
+ 1,
+ 2,
+ 4,
+ ],
+ "links": Object {
+ "landingPage": "https://app.pell.network/",
+ "manage": "https://app.pell.network/restake/detail?chainid=60808&address=0x631ae97e24f9F30150d31d958d37915975F12ed8",
+ "securityReview": "https://www.bitcoinlayers.org/infrastructure/bedrock-unibtc",
+ },
+ "logoUrl": "https://github.com/0xPellNetwork/pell_media_kit/blob/main/logos/500r_whiteblack.png?raw=true",
+ "name": "Restaking Pell-uniBTC-Babylon",
+ "protocol": "Pell",
+ "warningMessage": <Trans
+ id="tUiWhR"
+ message="Babylon does not yet support withdrawals."
+ />,
+ },
+ "meta": Object {
+ "logo": "",
+ "monetization": false,
+ "name": "Pell (uniBTC)",
+ "slug": "pell-unibtc",
+ "type": "staking",
+ },
+ "tvl": 18519790.86321,
},
]
❯ src/app/[lang]/(bridge)/stake/hooks/tests/useGetStrategies.test.tsx:382:33
|
Tests
Process completed with exit code 1.
|
Unused Files, Deps, Exports
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Prettier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ESLint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
TypeScript
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|