vault: formatting

This commit is contained in:
Mark Spanbroek 2025-02-06 14:37:50 +01:00
parent 0915fa33f1
commit 0f1dbc314b
3 changed files with 4 additions and 8 deletions

View File

@ -189,10 +189,7 @@ abstract contract VaultBase {
_token.safeTransfer(address(0xdead), amount);
}
function _burnAll(
Controller controller,
Fund fund
) internal {
function _burnAll(Controller controller, Fund fund) internal {
Lock storage lock = _locks[controller][fund];
require(lock.status() == LockStatus.Locked, LockRequired());

View File

@ -35,7 +35,6 @@ describe("Vault", function () {
})
describe("when a fund has no lock set", function () {
it("does not have any balances", async function () {
const balance = await vault.getBalance(fund, account.address)
const designated = await vault.getDesignatedBalance(fund, account.address)
@ -596,7 +595,7 @@ describe("Vault", function () {
.withdrawByRecipient(controller.address, fund)
expect(await vault.getLockStatus(fund)).to.equal(LockStatus.NoLock)
expect(await vault.getLockExpiry(fund)).to.equal(0)
})
})
})
describe("flowing", function () {
@ -735,7 +734,7 @@ describe("Vault", function () {
})
describe("fund is not locked", function () {
beforeEach(async function() {
beforeEach(async function () {
setAutomine(true)
await expire()
})

View File

@ -2,7 +2,7 @@ const LockStatus = {
NoLock: 0,
Locked: 1,
Unlocked: 2,
Burned: 3
Burned: 3,
}
module.exports = { LockStatus }