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

collat check conditional orders: update slippage buffer #298

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.6.36"
version = "1.6.37"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,16 @@ internal class TradeInputCalculator(
private val MARKET_ORDER_MAX_SLIPPAGE = 0.05

@Suppress("LocalVariableName", "PropertyName")
private val MARKET_ORDER_SLIPPAGE_WARNING_THRESHOLD = 0.01
private val STOP_MARKET_ORDER_SLIPPAGE_BUFFER_MAJOR_MARKET = 0.01

@Suppress("LocalVariableName", "PropertyName")
private val STOP_MARKET_ORDER_SLIPPAGE_BUFFER_MAJOR_MARKET = 0.05
private val TAKE_PROFIT_MARKET_ORDER_SLIPPAGE_BUFFER_MAJOR_MARKET = 0.02

@Suppress("LocalVariableName", "PropertyName")
private val TAKE_PROFIT_MARKET_ORDER_SLIPPAGE_BUFFER_MAJOR_MARKET = 0.1
private val STOP_MARKET_ORDER_SLIPPAGE_BUFFER = 0.02

@Suppress("LocalVariableName", "PropertyName")
private val STOP_MARKET_ORDER_SLIPPAGE_BUFFER = 0.1

@Suppress("LocalVariableName", "PropertyName")
private val TAKE_PROFIT_MARKET_ORDER_SLIPPAGE_BUFFER = 0.2
private val TAKE_PROFIT_MARKET_ORDER_SLIPPAGE_BUFFER = 0.04

internal fun calculate(
state: Map<String, Any>,
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.6.36'
spec.version = '1.6.37'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down
Loading