Skip to content

Commit

Permalink
Bug fix: Mimic wallet fee storate placement.
Browse files Browse the repository at this point in the history
Version update.

Changes to be committed:
	modified:   Base/JackrabbitLocker
	modified:   Base/JackrabbitOliverTwist
	modified:   Base/JackrabbitRelay
	modified:   Base/Library/JRRmimic.py
	modified:   Base/Library/JackrabbitProxy.py
	modified:   Base/Library/JackrabbitRelay.py
  • Loading branch information
rapmd73 committed Mar 6, 2024
1 parent e6ea10b commit 9a4ff5f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Base/JackrabbitLocker
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import json

import JRRsupport

Version="0.0.0.1.720"
Version="0.0.0.1.730"
BaseDirectory='/home/JackrabbitRelay2/Base'
ConfigDirectory='/home/JackrabbitRelay2/Config'
LogDirectory="/home/JackrabbitRelay2/Logs"
Expand Down
2 changes: 1 addition & 1 deletion Base/JackrabbitOliverTwist
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import subprocess
import JRRsupport
import JackrabbitRelay as JRR

Version="0.0.0.1.720"
Version="0.0.0.1.730"
BaseDirectory='/home/JackrabbitRelay2/Base'
DataDirectory='/home/JackrabbitRelay2/Data'
ConfigDirectory='/home/JackrabbitRelay2/Config'
Expand Down
2 changes: 1 addition & 1 deletion Base/JackrabbitRelay
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import json

import JRRsupport

Version="0.0.0.1.720"
Version="0.0.0.1.730"
BaseDirectory='/home/JackrabbitRelay2/Base'
ConfigDirectory='/home/JackrabbitRelay2/Config'
LogDirectory="/home/JackrabbitRelay2/Logs"
Expand Down
10 changes: 5 additions & 5 deletions Base/Library/JRRmimic.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class mimic:
# placed in init and released at exit.

def __init__(self,Exchange,Config,Active,DataDirectory=None):
self.Version="0.0.0.1.720"
self.Version="0.0.0.1.730"

self.StableCoinUSD=['USDT','USDC','BUSD','UST','DAI','FRAX','TUSD', \
'USDP','LUSD','USDN','HUSD','FEI','TRIBE','RSR','OUSD','XSGD', \
Expand Down Expand Up @@ -283,9 +283,9 @@ def UpdateWallet(self,action,asset,amount,price,fee_rate=0):
# Update fee balance
fee=round(abs(actualAmount) * actualPrice * fee_rate,8)
if 'Fees' in self.Wallet['Wallet']:
self.Wallet['Wallet']['Fees']+=fee
self.Wallet['Fees']+=fee
else:
self.Wallet['Wallet']['Fees']=fee # Initialize fee balance if not present
self.Wallet['Fees']=fee # Initialize fee balance if not present
# Update successful
order={}
order['DateTime']=(datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'))
Expand Down Expand Up @@ -323,9 +323,9 @@ def UpdateWallet(self,action,asset,amount,price,fee_rate=0):
# Update fee balance
fee = round(abs(actualAmount) * actualPrice * fee_rate,8)
if 'Fees' in self.Wallet['Wallet']:
self.Wallet['Wallet']['Fees']+=fee
self.Wallet['Fees']+=fee
else:
self.Wallet['Wallet']['Fees']=fee # Initialize fee balance if not present
self.Wallet['Fees']=fee # Initialize fee balance if not present
# Update successful
order={}
order['DateTime']=(datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'))
Expand Down
2 changes: 1 addition & 1 deletion Base/Library/JackrabbitProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
class JackrabbitProxy:
def __init__(self,framework=None,payload=None,exchange=None,account=None,asset=None,Usage=None):
# All the default locations
self.Version="0.0.0.1.720"
self.Version="0.0.0.1.730"
self.BaseDirectory='/home/JackrabbitRelay2/Base'
self.ConfigDirectory='/home/JackrabbitRelay2/Config'
self.DataDirectory="/home/JackrabbitRelay2/Data"
Expand Down
2 changes: 1 addition & 1 deletion Base/Library/JackrabbitRelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def Success(self,f,s):
class JackrabbitRelay:
def __init__(self,framework=None,payload=None,exchange=None,account=None,asset=None,secondary=None,NoIdentityVerification=False,Usage=None):
# All the default locations
self.Version="0.0.0.1.720"
self.Version="0.0.0.1.730"
self.NOhtml='<html><title>NO!</title><body style="background-color:#ffff00;display:flex;weight:100vw;height:100vh;align-items:center;justify-content:center"><h1 style="color:#ff0000;font-weight:1000;font-size:10rem">NO!</h1></body></html>'
self.BaseDirectory='/home/JackrabbitRelay2/Base'
self.ConfigDirectory='/home/JackrabbitRelay2/Config'
Expand Down

0 comments on commit 9a4ff5f

Please sign in to comment.