tx · XXeyphCtsdMttyU7v5Zg2Q2p8aDk8p1EoM76SxYfvFP

3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d:  -0.01000000 Waves

2023.10.20 18:28 [2807091] smart account 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d > SELF 0.00000000 Waves

{ "type": 13, "id": "XXeyphCtsdMttyU7v5Zg2Q2p8aDk8p1EoM76SxYfvFP", "fee": 1000000, "feeAssetId": null, "timestamp": 1697815744750, "version": 2, "chainId": 84, "sender": "3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d", "senderPublicKey": "7E4cNcg8gSYTmNbmLG2kvAiePh9KZoAT7W64shHxCc6n", "proofs": [ "5oUZVybvcVFqD3VB5VmyAyQHex3wKWG81KzyxutHQ6rMeaPoYdSVybMH8YhqcXxFhhNRLHzu8ydBxQh8GVzn1heJ" ], "script": "base64:BgIPCAISBgoEGBERCBIDCgEBBAARbHBfYWRkcmVzc19wdWJrZXkBIHy+XBhI/rhv/LQUflYon8e8q0PT8nBDeExH6jeAesBrACBtYXNzdHJhbnNmZXJfd2hpdGVsaXN0ZWRfYWRkcmVzcwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQALbmV0d29ya19mZWUAoMIeAR12YWxpZGF0ZU1hc3NUcmFuc2ZlckFyZ3VtZW50cwQKcmVjaXBpZW50cwdhbW91bnRzCnBheW1lbnRJZHgIcGF5bWVudHMEDnJlY2lwaWVudHNTaXplCQCQAwEFCnJlY2lwaWVudHMEC2Ftb3VudHNTaXplCQCQAwEFB2Ftb3VudHMEDnBheW1lbnRJZHhTaXplCQCQAwEFCnBheW1lbnRJZHgEDHBheW1lbnRzU2l6ZQkAkAMBBQhwYXltZW50cwQJbWluQW1vdW50CQCXAwEFB2Ftb3VudHMEDW1pblBheW1lbnRJZHgJAJcDAQUKcGF5bWVudElkeAQNbWF4UGF5bWVudElkeAkAlgMBBQpwYXltZW50SWR4CgERcGF5bWVudHNWYWxpZGF0b3ICDHBheW1lbnRBY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RlcgUYVG90YWxNYXNzVHJhbnNmZXJDb3VudGVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCAhhUb3RhbF9NYXNzX1RyYW5zZmVyX1NlbmQFFVRvdGFsTWFzc1RyYW5zZmVyU2VuZAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCkAwEFGFRvdGFsTWFzc1RyYW5zZmVyQ291bnRlcgITX01hc3NfVHJhbnNmZXJfU2VuZAUWUGFpZE1hc3NUcmFuc2ZlckFtb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQCnCAEFEWxwX2FkZHJlc3NfcHVia2V5BRZQYWlkTWFzc1RyYW5zZmVyQW1vdW50BQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAKcIAQURbHBfYWRkcmVzc19wdWJrZXkFC25ldHdvcmtfZmVlBQR1bml0BQNuaWwAztfLVg==", "height": 2807091, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9sn1kkgK3utoR36m8JFkJeGf4CRygCtCVfuZXZYVNkgT Next: AwuxwdviPnpALikrXGZr4SLvCWi875pPUFbSnAXoBp8r Diff:
OldNewDifferences
9393 let Amount = pmt.amount
9494 let maximum_payout_factor = 18
9595 let Counter = split(attachment, "_")[0]
96- let checkstatus = getStringValue((Counter + "_Winners_Status"))
9796 let CheckTotalFundsAddedInCounter = getIntegerValue(("Total_Funds_Added_In_Option_Order_" + Counter))
9897 let masspayoutlimits = fraction(CheckTotalFundsAddedInCounter, maximum_payout_factor, 10)
9998 if ((i.caller != masstransfer_whitelisted_address))
102101 then throw("Only Waves is allowed to Attach as payment.")
103102 else if (!(validateMassTransferArguments(recipients, amounts, paymentIdx, i.payments)))
104103 then throw("Invalid arguments")
105- else if ((checkstatus == "Paid"))
104+ else if (((Counter + "_Winners_Status") == "Paid"))
106105 then throw((("Mass Transfer against Counter ID: " + Counter) + " is already released."))
107106 else if ((Amount > CheckTotalFundsAddedInCounter))
108107 then throw((("Attached Payment Amount is exceeding more than Maximum Eligible Limit of " + toString(masspayoutlimits)) + " Wavelets."))
109108 else {
110109 let recipientsSize = size(recipients)
111110 func scriptTransfersGenerator (accum,next) = {
112- let $t030503082 = accum
113- let scriptTransfers = $t030503082._1
114- let j = $t030503082._2
111+ let $t030003032 = accum
112+ let scriptTransfers = $t030003032._1
113+ let j = $t030003032._2
115114 if ((j >= recipientsSize))
116115 then $Tuple2(scriptTransfers, (j + 1))
117116 else $Tuple2((scriptTransfers :+ ScriptTransfer(addressFromStringValue(recipients[j]), next, i.payments[paymentIdx[j]].assetId)), (j + 1))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lp_address_pubkey = base58'9Pwum3va2xrkVwsGRNiTeGxBBBNFEDaS9sfkZiSpSvdQ'
55
66 let masstransfer_whitelisted_address = addressFromPublicKey(lp_address_pubkey)
77
88 let network_fee = 500000
99
1010 func validateMassTransferArguments (recipients,amounts,paymentIdx,payments) = {
1111 let recipientsSize = size(recipients)
1212 let amountsSize = size(amounts)
1313 let paymentIdxSize = size(paymentIdx)
1414 let paymentsSize = size(payments)
1515 let minAmount = min(amounts)
1616 let minPaymentIdx = min(paymentIdx)
1717 let maxPaymentIdx = max(paymentIdx)
1818 func paymentsValidator (paymentAccum,nextPayment) = {
1919 let $t0799836 = paymentAccum
2020 let validPayments = $t0799836._1
2121 let j = $t0799836._2
2222 if ((j >= paymentsSize))
2323 then $Tuple2(validPayments, (j + 1))
2424 else {
2525 func amountsAggregator (amountAccum,nextAmount) = {
2626 let $t09911020 = amountAccum
2727 let amount = $t09911020._1
2828 let k = $t09911020._2
2929 if (if ((k >= recipientsSize))
3030 then true
3131 else (paymentIdx[k] != j))
3232 then $Tuple2(amount, (k + 1))
3333 else $Tuple2((amount + nextAmount), (k + 1))
3434 }
3535
3636 let aggregatedAmount = {
3737 let $l = amounts
3838 let $s = size($l)
3939 let $acc0 = $Tuple2(0, 0)
4040 func $f0_1 ($a,$i) = if (($i >= $s))
4141 then $a
4242 else amountsAggregator($a, $l[$i])
4343
4444 func $f0_2 ($a,$i) = if (($i >= $s))
4545 then $a
4646 else throw("List size exceeds 100")
4747
4848 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
4949 }
5050 if ((aggregatedAmount._1 == nextPayment.amount))
5151 then $Tuple2((validPayments + 1), (j + 1))
5252 else $Tuple2(validPayments, (j + 1))
5353 }
5454 }
5555
5656 let paymentsValidation = {
5757 let $l = payments
5858 let $s = size($l)
5959 let $acc0 = $Tuple2(0, 0)
6060 func $f0_1 ($a,$i) = if (($i >= $s))
6161 then $a
6262 else paymentsValidator($a, $l[$i])
6363
6464 func $f0_2 ($a,$i) = if (($i >= $s))
6565 then $a
6666 else throw("List size exceeds 10")
6767
6868 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
6969 }
7070 if (if (if (if (if (if (if (if ((recipientsSize == amountsSize))
7171 then (recipientsSize == paymentIdxSize)
7272 else false)
7373 then (recipientsSize > 0)
7474 else false)
7575 then (100 >= recipientsSize)
7676 else false)
7777 then (paymentsSize > 0)
7878 else false)
7979 then (minAmount > 0)
8080 else false)
8181 then (minPaymentIdx == 0)
8282 else false)
8383 then (maxPaymentIdx == (paymentsSize - 1))
8484 else false)
8585 then (paymentsValidation._1 == paymentsSize)
8686 else false
8787 }
8888
8989
9090 @Callable(i)
9191 func massTransfer (recipients,amounts,paymentIdx,attachment) = {
9292 let pmt = value(i.payments[0])
9393 let Amount = pmt.amount
9494 let maximum_payout_factor = 18
9595 let Counter = split(attachment, "_")[0]
96- let checkstatus = getStringValue((Counter + "_Winners_Status"))
9796 let CheckTotalFundsAddedInCounter = getIntegerValue(("Total_Funds_Added_In_Option_Order_" + Counter))
9897 let masspayoutlimits = fraction(CheckTotalFundsAddedInCounter, maximum_payout_factor, 10)
9998 if ((i.caller != masstransfer_whitelisted_address))
10099 then throw((("Not an Admin only " + toString(masstransfer_whitelisted_address)) + " can sign it."))
101100 else if (isDefined(pmt.assetId))
102101 then throw("Only Waves is allowed to Attach as payment.")
103102 else if (!(validateMassTransferArguments(recipients, amounts, paymentIdx, i.payments)))
104103 then throw("Invalid arguments")
105- else if ((checkstatus == "Paid"))
104+ else if (((Counter + "_Winners_Status") == "Paid"))
106105 then throw((("Mass Transfer against Counter ID: " + Counter) + " is already released."))
107106 else if ((Amount > CheckTotalFundsAddedInCounter))
108107 then throw((("Attached Payment Amount is exceeding more than Maximum Eligible Limit of " + toString(masspayoutlimits)) + " Wavelets."))
109108 else {
110109 let recipientsSize = size(recipients)
111110 func scriptTransfersGenerator (accum,next) = {
112- let $t030503082 = accum
113- let scriptTransfers = $t030503082._1
114- let j = $t030503082._2
111+ let $t030003032 = accum
112+ let scriptTransfers = $t030003032._1
113+ let j = $t030003032._2
115114 if ((j >= recipientsSize))
116115 then $Tuple2(scriptTransfers, (j + 1))
117116 else $Tuple2((scriptTransfers :+ ScriptTransfer(addressFromStringValue(recipients[j]), next, i.payments[paymentIdx[j]].assetId)), (j + 1))
118117 }
119118
120119 let result = {
121120 let $l = amounts
122121 let $s = size($l)
123122 let $acc0 = $Tuple2(nil, 0)
124123 func $f0_1 ($a,$i) = if (($i >= $s))
125124 then $a
126125 else scriptTransfersGenerator($a, $l[$i])
127126
128127 func $f0_2 ($a,$i) = if (($i >= $s))
129128 then $a
130129 else throw("List size exceeds 100")
131130
132131 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
133132 }
134133 $Tuple2((result._1 ++ [StringEntry((Counter + "_Winners_Status"), "Paid"), IntegerEntry((Counter + "_Eligible_Limits"), masspayoutlimits)]), unit)
135134 }
136135 }
137136
138137
139138
140139 @Callable(i)
141140 func UpdateLPBalance (PaidMassTransferAmount) = {
142141 let read_account_balance = wavesBalance(this).regular
143142 let read_total_pool_liquidity = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
144143 let received_order_amount = ((read_account_balance - read_total_pool_liquidity) - network_fee)
145144 let updated_pool_balance = ((read_total_pool_liquidity - PaidMassTransferAmount) + received_order_amount)
146145 let PreviousMassTransferCounter = match getInteger(this, "Mass_Transfer_Counter") {
147146 case a: Int =>
148147 a
149148 case _ =>
150149 0
151150 }
152151 let TotalMassTransferCounter = (PreviousMassTransferCounter + 1)
153152 let PreviousMassTransferSend = match getInteger(this, "Total_Mass_Transfer_Send") {
154153 case a: Int =>
155154 a
156155 case _ =>
157156 0
158157 }
159158 let TotalMassTransferSend = (PreviousMassTransferSend + PaidMassTransferAmount)
160159 if ((i.caller != masstransfer_whitelisted_address))
161160 then throw((("This Address is not Authorized. Only " + toString(masstransfer_whitelisted_address)) + " is Authorized Address to Sign it."))
162161 else if ((PaidMassTransferAmount > read_total_pool_liquidity))
163162 then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
164163 else [IntegerEntry("Total_Pool_Liquidity", updated_pool_balance), IntegerEntry("Mass_Transfer_Counter", TotalMassTransferCounter), IntegerEntry("Total_Mass_Transfer_Send", TotalMassTransferSend), IntegerEntry((toString(TotalMassTransferCounter) + "_Mass_Transfer_Send"), PaidMassTransferAmount), ScriptTransfer(addressFromPublicKey(lp_address_pubkey), PaidMassTransferAmount, unit), ScriptTransfer(addressFromPublicKey(lp_address_pubkey), network_fee, unit)]
165164 }
166165
167166

github/deemru/w8io/169f3d6 
110.07 ms