Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion script/saddle/flywheelInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ let writeFixture = async (data) => {

// chunk([1,2,3,4,5], 5) => [[1,2], [2,3], [5]]
let getChunks = (src, chunkSize) => {
assert(chunkSize > 0, 'chunkSize cant be 0');
assert(chunkSize > 0, 'chunkSize can't be 0');
let first = src.slice(0, chunkSize);
let rest = src.slice(chunkSize);
if (rest.length == 0) return [first];
Expand Down
2 changes: 1 addition & 1 deletion tests/Tokens/liquidateTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ describe('Comptroller', () => {
// show deprecated markets can be liquidated even if healthy
expect(await send(comptroller, 'liquidateBorrowAllowed', [cTokenBorrow._address, cTokenCollat._address, liquidator, borrower, borrowAmount])).toSucceed();

// even if deprecated, cant over repay
// even if deprecated, can't over repay
await expect(send(comptroller, 'liquidateBorrowAllowed', [cTokenBorrow._address, cTokenCollat._address, liquidator, borrower, borrowAmount * 2])).rejects.toRevert('revert Can not repay more than the total borrow');
});
})