Skip to content

Commit

Permalink
Merge pull request #840 from TrooperCrypto/master
Browse files Browse the repository at this point in the history
more reasonable quote margin
  • Loading branch information
0xtrooper authored Jul 3, 2023
2 parents 9952b1b + 53e6fc0 commit b9fd0ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ export default class API extends EventEmitter {
: baseQuantity * ladderPrice

hardPrice = hardQuoteQuantity / hardBaseQuantity
softPrice = hardPrice * 1.0025
softPrice = hardPrice * 1.0015
} else {
const { bids } = liquidity
ladderPrice = API.getQuoteFromLadder(bids as any[][], baseQuantity)
Expand All @@ -1705,7 +1705,7 @@ export default class API extends EventEmitter {
: baseQuantity * ladderPrice

hardPrice = hardQuoteQuantity / hardBaseQuantity
softPrice = hardPrice * 0.9975
softPrice = hardPrice * 0.9985
}

softBaseQuantity = baseQuantity
Expand All @@ -1728,7 +1728,7 @@ export default class API extends EventEmitter {
: quoteQuantity / ladderPrice

hardPrice = hardQuoteQuantity / hardBaseQuantity
softPrice = hardPrice * 1.0025
softPrice = hardPrice * 1.0015
} else {
const bids = liquidity.bids.map((l: any) => [
l[0],
Expand All @@ -1741,7 +1741,7 @@ export default class API extends EventEmitter {
: quoteQuantity / ladderPrice

hardPrice = hardQuoteQuantity / hardBaseQuantity
softPrice = hardPrice * 0.9975
softPrice = hardPrice * 0.9985
}

softQuoteQuantity = quoteQuantity
Expand Down

0 comments on commit b9fd0ce

Please sign in to comment.