Skip to content

Commit 4997e77

Browse files
committed
add check scripts
1 parent 2e1899d commit 4997e77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/check.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ async function checkVaultAdapter(env) {
223223
assert.equal(mappedToken.toLowerCase(), config[currentNetwork].USDC.toLowerCase(), `${env} USDC token mapping error`);
224224
console.log("USDC token mapping verified ✓");
225225

226+
//check protocol vault
227+
console.log("Checking protocol vault...");
228+
const protocolVault = await adapterContract.protocolVault();
229+
assert.equal(protocolVault.toLowerCase(), deployment[env].protocolVault.toLowerCase(), `${env} protocol vault config error`);
230+
console.log("Protocol vault verified ✓");
231+
226232
//check brokers
227233
console.log("Checking allowed brokers...");
228234
const allowedBrokers = deployment.allowedBrokersForAdapter;

0 commit comments

Comments
 (0)