Fixing small issue with the OrderBook#calculateObtainedQuote() method
This commit is contained in:
parent
50bd0aa05c
commit
ff856e7e2c
5 changed files with 27 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
|||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
|
||||
VERSION_NAME=0.4.6-alpha5
|
||||
VERSION_NAME=0.4.6-alpha6
|
||||
VERSION_CODE=8
|
||||
GROUP=com.github.bilthon
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ android {
|
|||
minSdkVersion 9
|
||||
targetSdkVersion 24
|
||||
versionCode 8
|
||||
versionName "0.4.6-alpha5"
|
||||
versionName "0.4.6-alpha6"
|
||||
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
}
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="cy.agorise.graphenej"
|
||||
android:versionCode="8"
|
||||
android:versionName="0.4.6-alpha5" >
|
||||
|
||||
android:versionName="0.4.6-alpha6" >
|
||||
<uses-sdk android:minSdkVersion="1" />
|
||||
<application/>
|
||||
</manifest>
|
|
@ -93,7 +93,7 @@ public class OrderBook {
|
|||
}else{
|
||||
// This order consumes all our base asset
|
||||
// obtained_quote = obtained_quote + (my base * order_base / order_quote)
|
||||
obtainedQuote = obtainedQuote.plus(myBase.times(orderBase.dividedBy(orderQuote)));
|
||||
obtainedQuote = obtainedQuote.plus(myBase.times(orderBase).dividedBy(orderQuote));
|
||||
myBase = UnsignedLong.ZERO;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue