mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-12 08:26:46 +00:00
vault: formatting
This commit is contained in:
parent
0915fa33f1
commit
0f1dbc314b
@ -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());
|
||||
|
||||
|
@ -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()
|
||||
})
|
||||
|
@ -2,7 +2,7 @@ const LockStatus = {
|
||||
NoLock: 0,
|
||||
Locked: 1,
|
||||
Unlocked: 2,
|
||||
Burned: 3
|
||||
Burned: 3,
|
||||
}
|
||||
|
||||
module.exports = { LockStatus }
|
||||
|
Loading…
x
Reference in New Issue
Block a user