From 6e8211810cc19c77561ef44f5b3b0e2ae2f148f4 Mon Sep 17 00:00:00 2001 From: Waves Rider <108881461+ridev6@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:54:00 +0500 Subject: [PATCH] wxdefi-471 --- deployer/pkg/syncer/syncer.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/deployer/pkg/syncer/syncer.go b/deployer/pkg/syncer/syncer.go index f9e90bc67..9ad51fc36 100644 --- a/deployer/pkg/syncer/syncer.go +++ b/deployer/pkg/syncer/syncer.go @@ -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{},