Update liquidation tests
@@ -20,6 +20,8 @@ const ECDSAKeepStub = artifacts.require('ECDSAKeepStub')
const KeepRegistryStub = artifacts.require('KeepRegistryStub')
const TestToken = artifacts.require('TestToken')
const TBTCSystemStub = artifacts.require('TBTCSystemStub')
+const DepositOwnerToken = artifacts.require('TestDepositOwnerToken')
+const FeeRebateToken = artifacts.require('TestFeeRebateToken')
const TestTBTCConstants = artifacts.require('TestTBTCConstants')
const TestDeposit = artifacts.require('TestDeposit')
@@ -47,6 +49,8 @@ const TEST_DEPOSIT_DEPLOY = [
{ name: 'DepositLiquidation', contract: DepositLiquidation },
{ name: 'TestDeposit', contract: TestDeposit },
{ name: 'TestDepositUtils', contract: TestDepositUtils },
+ { name: 'DepositOwnerToken', contract: DepositOwnerToken },
+ { name: 'FeeRebateToken', contract: FeeRebateToken },
{ name: 'ECDSAKeepStub', contract: ECDSAKeepStub }]
// spare signature:
@@ -64,6 +68,8 @@ contract('DepositLiquidation', (accounts) => {
let beneficiary
let tbtcToken
let tbtcSystemStub
+ let depositOwnerToken
+ let feeRebateToken
before(async () => {
await createSnapshot()
@@ -78,16 +84,23 @@ contract('DepositLiquidation', (accounts) => {
deployed = await utils.deploySystem(TEST_DEPOSIT_DEPLOY)
- tbtcSystemStub = await TBTCSystemStub.new(utils.address0)
+ tbtcSystemStub = await TBTCSystemStub.new()
tbtcToken = await TestToken.new(tbtcSystemStub.address)
+ depositOwnerToken = deployed.DepositOwnerToken
+ feeRebateToken = deployed.FeeRebateToken
testInstance = deployed.TestDeposit
- await testInstance.setExteriorAddresses(tbtcSystemStub.address, tbtcToken.address, utils.address0)
-
- await tbtcSystemStub.forceMint(beneficiary, web3.utils.toBN(deployed.TestDeposit.address))
+ await testInstance.setExteriorAddresses(
+ tbtcSystemStub.address,
+ tbtcToken.address,
+ depositOwnerToken.address,
+ feeRebateToken.address
+ )
+ await depositOwnerToken.forceMint(beneficiary, web3.utils.toBN(deployed.TestDeposit.address))
+ await feeRebateToken.forceMint(beneficiary, web3.utils.toBN(deployed.TestDeposit.address))
const keepRegistry = await KeepRegistryStub.new()
await tbtcSystemStub.initialize(
