Skip to content

Commit

Permalink
Merge branch 'master' into crispheaney/token-22
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jul 8, 2024
2 parents b170819 + a074ac4 commit 2906681
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,28 @@ jobs:
GH_PAT: ${{ secrets.GH_PAT }}
VERSION: ${{ needs.release.outputs.version }}
working-directory: ./sdk
check-for-program-version-changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
program: ${{ steps.filter.outputs.program }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
program:
- 'programs/drift/Cargo.toml'
verified-build:
name: Build Verifiable Artifact
runs-on: ubicloud
needs:
[
check-for-program-version-changes,
]
if: ${{ needs.check-for-program-version-changes.outputs.program == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions tests/testHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,10 @@ export async function initializeQuoteSpotMarket(
maintenanceLiabilityWeight,
imfFactor
);

// @ts-ignore
admin.accountSubscriber.spotOracleMap.set(0, PublicKey.default);

await admin.updateWithdrawGuardThreshold(
marketIndex,
new BN(10 ** 10).mul(QUOTE_PRECISION)
Expand Down

0 comments on commit 2906681

Please sign in to comment.