Skip to content

Commit

Permalink
wxdefi-471
Browse files Browse the repository at this point in the history
  • Loading branch information
ridev6 committed Sep 15, 2023
1 parent 6ac293a commit 6e82118
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions deployer/pkg/syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,33 @@ func (s *Syncer) doFile(
doLpStableRide := cont.File == lpStableRide && !mainnetLpStableHashEmpty
if doLpRide || doLpStableRide {
er := s.sendTx(
ctx,
proto.NewUnsignedTransferWithProofs(
3,
s.feePub,
proto.NewOptionalAssetWaves(),
proto.NewOptionalAssetWaves(),
tools.Timestamp(),
setScriptFee,
100000,
proto.NewRecipientFromAddress(addr),
nil,
),
s.feePrv,
false,
false,
fileName,
)
if er != nil {
return false, fmt.Errorf("s.sendTx (transfer) %s: %w", cont.File, er)
}

s.logger.Info().
Str("address", addr.String()).
Uint64("amount", setScriptFee).
Msg("WAVES to address were sent")

er = s.sendTx(
ctx,
unsignedSetScriptTx,
crypto.SecretKey{},
Expand Down

0 comments on commit 6e82118

Please sign in to comment.