Skip to content

Commit

Permalink
release sora v.3.3.0.3 101
Browse files Browse the repository at this point in the history
  • Loading branch information
arvifox committed Sep 11, 2023
1 parent e211974 commit 8807aef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ play {
serviceAccountCredentials = file(System.env.CI_PLAY_KEY ?: "../key/fake.json")
track = "internal"
releaseStatus = ReleaseStatus.DRAFT
releaseName = "3.3.0.2 - SORA Card"
releaseName = "3.3.0.3 - SORA Card"
}

dependencies {
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ buildscript {

ext {
// soralution 107 3.4.0.1 2023.09.08
// sora dae 100 3.3.0.1 2023.09.08
// sora dae 101 3.3.0.3 2023.09.11
// appVersionCode = Integer.valueOf(System.env.BUILD_NUMBER ?: 96)
appVersionCode = Integer.valueOf(System.env.CI_BUILD_ID ?: 100)
appVersionName = '3.3.0.2'
appVersionCode = Integer.valueOf(System.env.CI_BUILD_ID ?: 101)
appVersionName = '3.3.0.3'

compileVersion = 33
minVersion = 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import javax.inject.Singleton
import jp.co.soramitsu.common.config.BuildConfigWrapper
import jp.co.soramitsu.common.domain.AppStateProvider
import jp.co.soramitsu.common.domain.fiatChange
import jp.co.soramitsu.common.logger.FirebaseWrapper
import jp.co.soramitsu.core_db.AppDatabase
import jp.co.soramitsu.core_db.model.FiatTokenPriceLocal
import jp.co.soramitsu.core_db.model.ReferralLocal
Expand Down Expand Up @@ -72,7 +73,7 @@ class BlockExplorerManager @Inject constructor(
assetsInfo = it
}

private suspend fun getAssetsInfoInternal(tokenIds: List<String>): List<Pair<String, BigInteger>> {
private suspend fun getAssetsInfoInternal(tokenIds: List<String>): List<Pair<String, BigInteger>> = runCatching {
val selected = soraConfigManager.getSelectedCurrency()
val tokens = db.assetDao().getFiatTokenPriceLocal(selected.code)
val yesterdayHour = yesterday()
Expand All @@ -87,7 +88,10 @@ class BlockExplorerManager @Inject constructor(
resultList.add(assetInfo.tokenId to BigInteger(assetInfo.liquidity))
}
db.assetDao().insertFiatPrice(fiats)
return resultList
resultList
}.getOrElse {
FirebaseWrapper.recordException(it)
emptyList()
}

suspend fun updatePoolsSbApy() {
Expand All @@ -113,6 +117,9 @@ class BlockExplorerManager @Inject constructor(
db.referralsDao().insertReferrals(it)
}
}
.onFailure {
FirebaseWrapper.recordException(it)
}
}

suspend fun getXorPerEurRatio(): Double? = runCatching {
Expand Down

0 comments on commit 8807aef

Please sign in to comment.