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

sdk: tx version updates #651

Merged
merged 5 commits into from
Oct 17, 2023
Merged

sdk: tx version updates #651

merged 5 commits into from
Oct 17, 2023

Conversation

lowkeynicc
Copy link
Contributor

No description provided.

// @ts-ignore
if (!tx.message) {
//@ts-ignore
if (this.txVersion === 'legacy' || !tx.message) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you know why you needed this?

@lowkeynicc lowkeynicc merged commit d424b16 into master Oct 17, 2023
crispheaney pushed a commit that referenced this pull request Oct 18, 2023
* sdk: tx version updates

* updates

* improve logic

* flip logic due to anchor test failing
crispheaney added a commit that referenced this pull request Oct 18, 2023
* updates

* add margin ratio updates for spot

* program: calculate max order size accounts for custom margin ratio

* add tests

* prettify and lint

* prettify and lint

* transform margin ratio to liability weight

* works with asset weight

* update sdk

* sdk: updates for maxswap

* asset weight should be min not max

* add weights to leverage components

* fix leverage somewhat

* add tests for apply_user_custom_margin_ratio

* tests/user/test.ts: add custom margin checks

* fix lints

* sdk: tx version updates (#651)

* sdk: tx version updates

* updates

* improve logic

* flip logic due to anchor test failing

* sdk: release v2.42.0-beta.6

* CHANGELOG

---------

Co-authored-by: lowkeynicc <[email protected]>
Co-authored-by: 0xbigz <[email protected]>
Co-authored-by: lowkeynicc <[email protected]>
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants