Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Jul 13, 2024
1 parent d09c2bf commit a7cf6d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class {
this.settings = settings
this.storage = storage
this.utils = utils
const updateProviderBalance = (b: number) => this.storage.liquidityStorage.UpdateTrackedProviderBalance('lnPub', settings.liquiditySettings.liquidityProviderPub, b)
const updateProviderBalance = (b: number) => this.storage.liquidityStorage.IncrementTrackedProviderBalance('lnPub', settings.liquiditySettings.liquidityProviderPub, b)
this.liquidityProvider = new LiquidityProvider(settings.liquiditySettings.liquidityProviderPub, this.utils, this.invoicePaidCb, updateProviderBalance)
this.rugPullTracker = new RugPullTracker(this.storage, this.liquidityProvider)
this.lnd = new LND(settings.lndSettings, this.liquidityProvider, this.utils, this.addressPaidCb, this.invoicePaidCb, this.newBlockCb, this.htlcCb)
Expand Down
1 change: 0 additions & 1 deletion src/services/main/liquidityProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export class LiquidityProvider {
if (res.status === 'ERROR') {
return
}
this.incrementProviderBalance(res.balance)
this.ready = true
this.queue.forEach(q => q('ready'))
this.log("subbing to user operations")
Expand Down

0 comments on commit a7cf6d6

Please sign in to comment.