Skip to content

Commit 391da85

Browse files
committed
test: update veBAL tests
1 parent 12e8bb4 commit 391da85

File tree

3 files changed

+6
-43
lines changed

3 files changed

+6
-43
lines changed

test/integration/tests/tribeRedeemer.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe('e2e-tribe-redeemer', function () {
151151
expect(daiReceived).to.be.at.most('71000000000'); // <>>= 0.0000000710 DAI
152152
});
153153

154-
it.only('dust redeemooor', async () => {
154+
it('dust redeemooor', async () => {
155155
const signer = await getImpersonatedSigner(addresses.core);
156156
await forceEth(signer.address);
157157
const amount = '100'; // 100 TRIBE Wei
@@ -177,7 +177,7 @@ describe('e2e-tribe-redeemer', function () {
177177
expect(daiReceived).to.be.equal('7'); // 6 DAI Wei
178178
});
179179

180-
it.only('last redeemooor', async () => {
180+
it('last redeemooor', async () => {
181181
const signer = await getImpersonatedSigner(addresses.core);
182182
await forceEth(signer.address);
183183
const redeemerSigner = await getImpersonatedSigner(contracts.tribeRedeemer.address);
@@ -251,8 +251,8 @@ describe('e2e-tribe-redeemer', function () {
251251
const daiReceived = daiBalance1.sub(daiBalance0);
252252
expect(stethReceived).to.be.at.least(ethers.constants.WeiPerEther.mul(109).div(100)); // 1.0964 stETH
253253
expect(stethReceived).to.be.at.most(ethers.constants.WeiPerEther.mul(112).div(100));
254-
expect(daiReceived).to.be.at.least(ethers.constants.WeiPerEther.mul(665)); // 670.212 DAI
255-
expect(daiReceived).to.be.at.most(ethers.constants.WeiPerEther.mul(675));
254+
expect(daiReceived).to.be.at.least(ethers.constants.WeiPerEther.mul(700)); // 701.525 DAI
255+
expect(daiReceived).to.be.at.most(ethers.constants.WeiPerEther.mul(705));
256256

257257
// balance after all redeems
258258
expect(await contracts.steth.balanceOf(contracts.tribeRedeemer.address)).to.be.at.most('1');

test/integration/tests/veBalHelper_gauge.ts

+1-38
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { VeBalHelper } from '@custom-types/contracts';
22
import { NamedAddresses, NamedContracts } from '@custom-types/types';
33
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
44
import { ProposalsConfig } from '@protocol/proposalsConfig';
5-
import { getAddresses, getImpersonatedSigner } from '@test/helpers';
5+
import { getAddresses, getImpersonatedSigner, time } from '@test/helpers';
66
import { TestEndtoEndCoordinator } from '@test/integration/setup';
77
import chai, { expect } from 'chai';
88
import CBN from 'chai-bn';
@@ -103,41 +103,4 @@ describe('e2e-veBalHelper-gauge-management', function () {
103103
).sub(stakeBeforeBalance);
104104
expect(stakeBalanceDiff).to.equal(0);
105105
});
106-
107-
it('should be able to voteForGaugeWeight() to vote for gauge weights whilst a lock is active ', async () => {
108-
// remove 100% votes for B-30FEI-70WETH
109-
expect(
110-
(
111-
await contracts.balancerGaugeController.vote_user_slopes(
112-
contractAddresses.veBalDelegatorPCVDeposit,
113-
contractAddresses.balancerGaugeBpt30Fei70Weth
114-
)
115-
)[1]
116-
).to.be.equal('10000');
117-
await vebalOtcHelper
118-
.connect(otcBuyerSigner)
119-
.voteForGaugeWeight(contractAddresses.bpt30Fei70Weth, contractAddresses.balancerGaugeBpt30Fei70Weth, 0);
120-
expect(
121-
(
122-
await contracts.balancerGaugeController.vote_user_slopes(
123-
contractAddresses.veBalDelegatorPCVDeposit,
124-
contractAddresses.balancerGaugeBpt30Fei70Weth
125-
)
126-
)[1]
127-
).to.be.equal('0');
128-
// set 100% votes for bb-a-usd
129-
await vebalOtcHelper.connect(otcBuyerSigner).voteForGaugeWeight(
130-
'0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2', // bb-a-usd token
131-
'0x68d019f64A7aa97e2D4e7363AEE42251D08124Fb', // bb-a-usd gauge
132-
10000
133-
);
134-
expect(
135-
(
136-
await contracts.balancerGaugeController.vote_user_slopes(
137-
contractAddresses.veBalDelegatorPCVDeposit,
138-
'0x68d019f64A7aa97e2D4e7363AEE42251D08124Fb'
139-
)
140-
)[1]
141-
).to.be.equal('10000');
142-
});
143106
});

test/integration/tests/veBalHelper_setters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe('e2e-veBalHelper-setters', function () {
211211

212212
it('should be able setDelegate() to give snapshot voting power to another address', async () => {
213213
// Can setDelegate() to give Snapshot voting power to someone else
214-
expect(await contracts.veBalDelegatorPCVDeposit.delegate()).to.be.equal(contractAddresses.eswak);
214+
expect(await contracts.veBalDelegatorPCVDeposit.delegate()).to.be.equal(contractAddresses.aaveCompaniesMultisig);
215215
await vebalOtcHelper.connect(otcBuyerSigner).setDelegate(contractAddresses.feiDAOTimelock);
216216
expect(await contracts.veBalDelegatorPCVDeposit.delegate()).to.be.equal(contractAddresses.feiDAOTimelock);
217217
});

0 commit comments

Comments
 (0)