fix(liquidation-sdk-viem): start fixing test setup #148
push.yml
on: push
lint
/
biome
21s
test
/
vitest
4m 9s
Matrix: build / build
Matrix: publish / publish
Waiting for pending jobs
Annotations
10 errors
packages/bundler-sdk-viem/test/populateBundle.test.ts > populateBundle > with signatures > ethereum > should borrow USDC with shared liquidity and reallocation fee + unwrap remaining WETH:
packages/bundler-sdk-viem/test/populateBundle.test.ts#L1979
AssertionError: expected true to be falsy
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
</body>
</html>
- Expected
+ Received
- false
+ true
❯ packages/bundler-sdk-viem/test/populateBundle.test.ts:1979:68
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
packages/bundler-sdk-viem/test/populateBundle.test.ts > populateBundle > without signatures > ethereum > should simulate bbETH mint on behalf with slippage & unwrap remaining WETH:
packages/bundler-sdk-viem/test/populateBundle.test.ts#L3544
AssertionError: expected '109.516790392355683089' to be close to 10, received difference is 99.51679039235569, but expected 0.05
❯ packages/bundler-sdk-viem/test/populateBundle.test.ts:3544:13
|
packages/blue-sdk-ethers/test/e2e/Vault.test.ts > augment/Vault > should fetch vault data:
packages/blue-sdk-ethers/test/e2e/Vault.test.ts#L78
AssertionError: expected Vault{ …(23) } to strictly equal Vault{ …(23) }
- Expected
+ Received
Vault {
"address": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
"asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"curator": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"decimalsOffset": 12n,
"fee": 50000000000000000n,
"feeRecipient": "0x255c7705e8BB334DfCae438197f7C4297988085a",
"guardian": "0xCF0FE65E39C776D2d6Eb420364A5df776c9cFf5f",
"lastTotalAssets": 26129569140552n,
"name": "Steakhouse USDC",
"owner": "0x255c7705e8BB334DfCae438197f7C4297988085a",
"pendingGuardian": Object {
"validAt": 0n,
"value": "0x0000000000000000000000000000000000000000",
},
"pendingOwner": "0x0000000000000000000000000000000000000000",
"pendingTimelock": Object {
"validAt": 0n,
"value": 0n,
},
"publicAllocatorConfig": Object {
"accruedFee": 0n,
"admin": "0x0000000000000000000000000000000000000000",
"fee": 1n,
},
"skimRecipient": "0x0000000000000000000000000000000000000000",
"supplyQueue": Array [
"0xb323495f7e4148be5643a4ea4a8221eef163e4bccfdedc2a6f4696baacbc86cc",
"0x54efdee08e272e929034a8f26f7ca34b1ebe364b275391169b28c6d7db24dbc8",
],
"symbol": "steakUSDC",
"timelock": 604800n,
- "totalAssets": 26138940196162n,
+ "totalAssets": 26138939999549n,
"totalSupply": 25752992371062043744406063n,
"underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"withdrawQueue": Array [
"0x54efdee08e272e929034a8f26f7ca34b1ebe364b275391169b28c6d7db24dbc8",
"0xb323495f7e4148be5643a4ea4a8221eef163e4bccfdedc2a6f4696baacbc86cc",
"0x495130878b7d2f1391e21589a8bcaef22cbc7e1fbbd6866127193b3cc239d8b1",
"0x06f2842602373d247c4934f7656e513955ccc4c377f0febc0d9ca2c3bcc191b1",
"0x3a85e619751152991742810df6ec69ce473daef99e28a64ab2340d7b7ccfee49",
],
}
❯ packages/blue-sdk-ethers/test/e2e/Vault.test.ts:78:19
|
packages/blue-sdk-viem/test/Vault.test.ts > augment/Vault > should fetch vault data:
packages/blue-sdk-viem/test/Vault.test.ts#L78
AssertionError: expected Vault{ …(23) } to strictly equal Vault{ …(23) }
- Expected
+ Received
Vault {
"address": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
"asset": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"curator": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"decimalsOffset": 12n,
"fee": 50000000000000000n,
"feeRecipient": "0x255c7705e8BB334DfCae438197f7C4297988085a",
"guardian": "0xCF0FE65E39C776D2d6Eb420364A5df776c9cFf5f",
"lastTotalAssets": 26129569140552n,
"name": "Steakhouse USDC",
"owner": "0x255c7705e8BB334DfCae438197f7C4297988085a",
"pendingGuardian": Object {
"validAt": 0n,
"value": "0x0000000000000000000000000000000000000000",
},
"pendingOwner": "0x0000000000000000000000000000000000000000",
"pendingTimelock": Object {
"validAt": 0n,
"value": 0n,
},
"publicAllocatorConfig": Object {
"accruedFee": 0n,
"admin": "0x0000000000000000000000000000000000000000",
"fee": 1n,
},
"skimRecipient": "0x0000000000000000000000000000000000000000",
"supplyQueue": Array [
"0xb323495f7e4148be5643a4ea4a8221eef163e4bccfdedc2a6f4696baacbc86cc",
"0x54efdee08e272e929034a8f26f7ca34b1ebe364b275391169b28c6d7db24dbc8",
],
"symbol": "steakUSDC",
"timelock": 604800n,
- "totalAssets": 26138940196162n,
+ "totalAssets": 26138939802936n,
"totalSupply": 25752992371062043744406063n,
"underlying": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"withdrawQueue": Array [
"0x54efdee08e272e929034a8f26f7ca34b1ebe364b275391169b28c6d7db24dbc8",
"0xb323495f7e4148be5643a4ea4a8221eef163e4bccfdedc2a6f4696baacbc86cc",
"0x495130878b7d2f1391e21589a8bcaef22cbc7e1fbbd6866127193b3cc239d8b1",
"0x06f2842602373d247c4934f7656e513955ccc4c377f0febc0d9ca2c3bcc191b1",
"0x3a85e619751152991742810df6ec69ce473daef99e28a64ab2340d7b7ccfee49",
],
}
❯ packages/blue-sdk-viem/test/Vault.test.ts:78:19
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate on standard market with bad debt:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L841
AssertionError: expected '8823.185637474732106638' to be close to 5977.104502, received difference is 2846.081135474731, but expected 5e-7
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:841:58
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate on a PT standard market after maturity:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1102
AssertionError: expected '7325.591839287415463757' to be close to 7325.59189336, received difference is 0.000054072584134701174, but expected 5e-9
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1102:58
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a USD0USD0++ market:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1130
ReferenceError: mainnetAddresses is not defined
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1130:18
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a USD0++ market:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1380
ReferenceError: LiquidationEncoder is not defined
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1380:39
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a sUSDS market:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1549
AssertionError: expected '0.000000000000000000' to be close to 11652.93471896, received difference is 11652.93471896, but expected 5e-9
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1549:58
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a sUSDS market using DAI when USDS lacks liquidity:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1710
AssertionError: expected '8.166022208239693500' to be close to 11652.93471896, received difference is 11644.76869675176, but expected 5e-9
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1710:58
|