Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Burry-escrow with fixes #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adpthegreat
Copy link

@adpthegreat adpthegreat commented Sep 12, 2024

  • Renamed escrow to escrow_state

  • Renamed all variables with _ix to _instruction

  • Renamed tx to transaction

  • Removed Magic Number (8) and replaced with ANCHOR_DISCRIMINATOR const

  • changed std::mem::size_of::() to Escrow::INIT_SPACE

  • Wrapped solPrice with BN

  • changed anchor.BN pro BN in test

  • Updated assertions with prices in tests to use .eq() method

  • Ran tests accordingly

Screenshot 2024-09-10 at 15 23 38

- Renamed escrow to escrow_state
- Renamed all variables with _ix to _instruction
- Renamed tx to transaction
- Removed Magic Number (8) and replaced with ANCHOR_DISCRIMINATOR const
- changed std::mem::size_of::<Escrow>() to Escrow::INIT_SPACE
- Wrapped solPrice with BN
- Updated assertions in tests to use .eq() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant