diff --git a/a3p-integration/proposals/z:acceptance/test-lib/vaults.js b/a3p-integration/proposals/z:acceptance/test-lib/vaults.js index 83766fc7d73..eda527a5f51 100644 --- a/a3p-integration/proposals/z:acceptance/test-lib/vaults.js +++ b/a3p-integration/proposals/z:acceptance/test-lib/vaults.js @@ -193,8 +193,8 @@ export const proposeNewDebtCeiling = async (address, debtLimit) => { ); }; +export const GOV4ADDR = 'agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy'; export const setDebtLimit = async (address, debtLimit) => { - const GOV4ADDR = 'agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy'; const govAccounts = [GOV1ADDR, GOV2ADDR, GOV4ADDR]; console.log('ACTIONS Setting debt limit'); diff --git a/a3p-integration/proposals/z:acceptance/test.sh b/a3p-integration/proposals/z:acceptance/test.sh index 65514c76e9f..906bb57262e 100755 --- a/a3p-integration/proposals/z:acceptance/test.sh +++ b/a3p-integration/proposals/z:acceptance/test.sh @@ -26,11 +26,11 @@ echo ACCEPTANCE TESTING state sync echo ACCEPTANCE TESTING wallet yarn ava wallet.test.js -echo ACCEPTANCE TESTING vaults -yarn ava vaults.test.js - echo ACCEPTANCE TESTING psm yarn ava psm.test.js echo ACCEPTANCE TESTING governance yarn ava governance.test.js + +echo ACCEPTANCE TESTING vaults +yarn ava vaults.test.js diff --git a/a3p-integration/proposals/z:acceptance/vaults.test.js b/a3p-integration/proposals/z:acceptance/vaults.test.js index 0f51a7da777..a32e8e1115a 100644 --- a/a3p-integration/proposals/z:acceptance/vaults.test.js +++ b/a3p-integration/proposals/z:acceptance/vaults.test.js @@ -13,6 +13,7 @@ import { generateOracleMap, getPriceQuote, getVaultPrices, + GOV2ADDR, } from '@agoric/synthetic-chain'; import { getBalances, agopsVaults } from './test-lib/utils.js'; import { @@ -26,7 +27,7 @@ import { verifyPushedPrice, getPriceFeedRoundId, } from './test-lib/price-feed.js'; -import { tryISTBalances } from './test-lib/psm-lib.js'; +import { tryISTBalances, bankSend as sendIST } from './test-lib/psm-lib.js'; const VAULT_MANAGER = 'manager0'; @@ -350,6 +351,9 @@ test.serial( const { totalDebt: totalDebtBefore } = await getAvailableDebtForMint(VAULT_MANAGER); + // provision governance wallet to cover transaction fees + await sendIST(GOV2ADDR, `1000000uist`, GOV1ADDR); + const limit = (totalDebtBefore - 10_000_000n) / 1_000_000n; await setDebtLimit(GOV1ADDR, limit);