Skip to content

Commit

Permalink
Merge pull request #31 from invariant-labs/add-burn-draft
Browse files Browse the repository at this point in the history
Add burn entrypoint
  • Loading branch information
none00y authored Aug 21, 2024
2 parents 56a1eb2 + 59269f5 commit bf9e8be
Show file tree
Hide file tree
Showing 12 changed files with 1,151 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
node-version: '18'
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-02-04
toolchain: 1.79
override: true
- name: install global mocha
run: |
Expand Down Expand Up @@ -86,7 +86,8 @@ jobs:
if: steps.cache-anchor.outputs.cache-hit != 'true'
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
cargo install --git https://github.com/project-serum/anchor --tag v${{ env.anchor_version }} anchor-cli --locked
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
avm install ${{ env.anchor_version }}
- name: build programs
working-directory: ${{ env.protocol_path }}
run: |
Expand Down
1 change: 1 addition & 0 deletions protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test:invoke": "anchor test --skip-build tests/invoke.test.ts",
"test:init-lp-pool": "anchor test --skip-build tests/init-lp-pool.test.ts",
"test:mint": "anchor test --skip-build tests/mint.test.ts",
"test:burn": "anchor test --skip-build tests/burn.test.ts",
"test:math": "anchor test --skip-build tests/math.test.ts"
},
"keywords": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ impl<'info> CreatePosition<'info> {
bump: u8,
) -> Result<()> {
msg!("INVARIANT: CREATE POSITION");

let mut position = self.position.load_init()?;
let mut pool = &mut self.pool.load_mut()?;
let lower_tick = &mut self.lower_tick.load_mut()?;
Expand Down
Loading

0 comments on commit bf9e8be

Please sign in to comment.