Skip to content

Commit

Permalink
refactor: add isolated pool participant count and argument order refa…
Browse files Browse the repository at this point in the history
…ctoring to core pool
  • Loading branch information
coreyar committed Dec 4, 2024
1 parent 9a05451 commit 230b35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions subgraphs/venus/tests/VToken/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ describe('VToken', () => {
});

test('registers increase and decrease in the market supplier count', () => {
let market = getMarket(aaaTokenAddress)!;
const market = getMarket(aaaTokenAddress)!;
const marketId = aaaTokenAddress.toHexString();
assert.assertNotNull(market);
if (!market) {
Expand Down Expand Up @@ -497,9 +497,6 @@ describe('VToken', () => {
zeroBigInt32,
);

market = getMarket(aaaTokenAddress)!;

market = getMarket(aaaTokenAddress)!;
handleRedeem(redeemEvent);

assert.fieldEquals('Market', marketId, 'supplierCount', '3');
Expand All @@ -511,7 +508,6 @@ describe('VToken', () => {
halfMintTokens,
);

market = getMarket(aaaTokenAddress)!;
handleRedeemV1(redeemEventV1);

redeemEvent = createRedeemEvent(
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/venus/tests/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const createComptrollerMock = (vTokens: Address[]): void => {
createMockedFunction(comptrollerAddress, 'maxAssets', 'maxAssets():(uint256)').returns([
ethereum.Value.fromI32(10),
]);

log.info('c {} p {}', [comptrollerAddress.toHexString(), priceOracleAddress.toHexString()]);
createMockedFunction(comptrollerAddress, 'oracle', 'oracle():(address)').returns([
ethereum.Value.fromAddress(priceOracleAddress),
]);
Expand Down

0 comments on commit 230b35d

Please sign in to comment.