Skip to content

192-fix-inverted-strike - #193

Open
caspercasanova wants to merge 1 commit into
Dual-Finance:masterfrom
caspercasanova:master
Open

192-fix-inverted-strike#193
caspercasanova wants to merge 1 commit into
Dual-Finance:masterfrom
caspercasanova:master

Conversation

@caspercasanova

Copy link
Copy Markdown

Added USDC pair check + Inversion of quote

Changed dollarize function params to include sigFig amount

Changed strikeQuoteAtomsPerBaseToken to string for dollarized conversion

image

strikeQuoteAtomsPerLot: strike.toNumber(),
});

if (!isUSDCQuotePair(baseMint, quoteMint)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Preferred solution would be to modify isUpsidePool() if neither base or quote contains USDC. The issue is that non-USDC quote assets flag that the pool is a "downside" or put and to invert the strike when it shouldn't

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