Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
297
Merge Requests
41
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
d169ef05
Commit
d169ef05
authored
1 hour ago
by
Ben Hayward
Browse files
Options
Download
Update
parent
c92e0ad4
fix/wallet-balance-caching-1115
1 merge request
!396
[Sprint/RollingRabbit](fix): Wallet balance caching #1115
Pipeline
#95431619
passed with stages
in 7 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Controllers/api/v2/blockchain/wallet.php
View file @
d169ef05
...
...
@@ -47,7 +47,7 @@ class wallet implements Interfaces\Api
try
{
$onChainBalanceVal
=
BigNumber
::
_
(
$onChainBalance
->
get
());
}
catch
(
\Exception
$e
)
{
$onChainBalanceVal
=
null
;
$onChainBalanceVal
=
null
;
}
$offChainBalance
=
Di
::
_
()
->
get
(
'Blockchain\Wallets\OffChain\Balance'
);
...
...
@@ -56,7 +56,7 @@ class wallet implements Interfaces\Api
$offchainAvailableVal
=
BigNumber
::
_
(
$offChainBalance
->
getAvailable
());
$balance
=
$onChainBalanceVal
$balance
=
$onChainBalanceVal
?
$onChainBalanceVal
->
add
(
$offChainBalanceVal
)
:
$offChainBalanceVal
;
...
...
This diff is collapsed.
Please
register
or
sign in
to comment