tx · 13bW8pmxgJs6KT8zJAJhx13n9hmz4BqwzW4pZc4JemhQ

3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d:  -0.01000000 Waves

2023.10.12 12:29 [2795203] smart account 3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d > SELF 0.00000000 Waves

{ "type": 13, "id": "13bW8pmxgJs6KT8zJAJhx13n9hmz4BqwzW4pZc4JemhQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1697102984853, "version": 2, "chainId": 84, "sender": "3Ms2ssGBpsFccHLtdb5zApeJ51jU3377r1d", "senderPublicKey": "7E4cNcg8gSYTmNbmLG2kvAiePh9KZoAT7W64shHxCc6n", "proofs": [ "DF9zENUgjqekdwhPZq5ayWdjPMRDYUJnUXnMUCKtZneYFQy88ppsawDFar9aXULBJo7r6mFxnScCRpVsCSTqwc1" ], "script": "base64:BgIPCAISBgoEGBERCBIDCgEBBAARbHBfYWRkcmVzc19wdWJrZXkBIHy+XBhI/rhv/LQUflYon8e8q0PT8nBDeExH6jeAesBrACBtYXNzdHJhbnNmZXJfd2hpdGVsaXN0ZWRfYWRkcmVzcwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQALbmV0d29ya19mZWUAoMIeARF2YWxpZGF0ZUFyZ3VtZW50cwQKcmVjaXBpZW50cwdhbW91bnRzCnBheW1lbnRJZHgIcGF5bWVudHMEDnJlY2lwaWVudHNTaXplCQCQAwEFCnJlY2lwaWVudHMEC2Ftb3VudHNTaXplCQCQAwEFB2Ftb3VudHMEDnBheW1lbnRJZHhTaXplCQCQAwEFCnBheW1lbnRJZHgEDHBheW1lbnRzU2l6ZQkAkAMBBQhwYXltZW50cwQJbWluQW1vdW50CQCXAwEFB2Ftb3VudHMEDW1pblBheW1lbnRJZHgJAJcDAQUKcGF5bWVudElkeAQNbWF4UGF5bWVudElkeAkAlgMBBQpwYXltZW50SWR4CgERcGF5bWVudHNWYWxpZGF0b3ICDHBheW1lbnRBY2N1bQtuZXh0UGF5bWVudA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RhdGVkX3Bvb2xfYmFsYW5jZQkAzAgCCQEMSW50ZWdlckVudHJ5AgIVTWFzc19UcmFuc2Zlcl9Db3VudGVyBRhUb3RhbE1hc3NUcmFuc2ZlckNvdW50ZXIJAMwIAgkBDEludGVnZXJFbnRyeQICGFRvdGFsX01hc3NfVHJhbnNmZXJfU2VuZAUVVG90YWxNYXNzVHJhbnNmZXJTZW5kCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKQDAQUYVG90YWxNYXNzVHJhbnNmZXJDb3VudGVyAhNfTWFzc19UcmFuc2Zlcl9TZW5kBRZQYWlkTWFzc1RyYW5zZmVyQW1vdW50CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAKcIAQURbHBfYWRkcmVzc19wdWJrZXkFFlBhaWRNYXNzVHJhbnNmZXJBbW91bnQFBHVuaXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkApwgBBRFscF9hZGRyZXNzX3B1YmtleQULbmV0d29ya19mZWUFBHVuaXQFA25pbAD9JfLt", "height": 2795203, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DHWMjwPMfQHyW7eVe6TJReKP7bMv5HRkr3LR3yxUDLAz Next: EdmuZMkxjS8m9NZ4b7FFxeULPUptsdd1Mr1xRGJ12ezE Diff:
OldNewDifferences
55
66 let masstransfer_whitelisted_address = addressFromPublicKey(lp_address_pubkey)
77
8-let network_fee = 5000000
8+let network_fee = 500000
99
1010 func validateArguments (recipients,amounts,paymentIdx,payments) = {
1111 let recipientsSize = size(recipients)
1616 let minPaymentIdx = min(paymentIdx)
1717 let maxPaymentIdx = max(paymentIdx)
1818 func paymentsValidator (paymentAccum,nextPayment) = {
19- let $t0768805 = paymentAccum
20- let validPayments = $t0768805._1
21- let j = $t0768805._2
19+ let $t0787824 = paymentAccum
20+ let validPayments = $t0787824._1
21+ let j = $t0787824._2
2222 if ((j >= paymentsSize))
2323 then $Tuple2(validPayments, (j + 1))
2424 else {
2525 func amountsAggregator (amountAccum,nextAmount) = {
26- let $t0960989 = amountAccum
27- let amount = $t0960989._1
28- let k = $t0960989._2
26+ let $t09791008 = amountAccum
27+ let amount = $t09791008._1
28+ let k = $t09791008._2
2929 if (if ((k >= recipientsSize))
3030 then true
3131 else (paymentIdx[k] != j))
9999 else {
100100 let recipientsSize = size(recipients)
101101 func scriptTransfersGenerator (accum,next) = {
102- let $t023462378 = accum
103- let scriptTransfers = $t023462378._1
104- let j = $t023462378._2
102+ let $t023652397 = accum
103+ let scriptTransfers = $t023652397._1
104+ let j = $t023652397._2
105105 if ((j >= recipientsSize))
106106 then $Tuple2(scriptTransfers, (j + 1))
107107 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
8-let network_fee = 5000000
8+let network_fee = 500000
99
1010 func validateArguments (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) = {
19- let $t0768805 = paymentAccum
20- let validPayments = $t0768805._1
21- let j = $t0768805._2
19+ let $t0787824 = paymentAccum
20+ let validPayments = $t0787824._1
21+ let j = $t0787824._2
2222 if ((j >= paymentsSize))
2323 then $Tuple2(validPayments, (j + 1))
2424 else {
2525 func amountsAggregator (amountAccum,nextAmount) = {
26- let $t0960989 = amountAccum
27- let amount = $t0960989._1
28- let k = $t0960989._2
26+ let $t09791008 = amountAccum
27+ let amount = $t09791008._1
28+ let k = $t09791008._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 if ((i.caller != masstransfer_whitelisted_address))
9494 then throw((("Not an Admin only " + toString(masstransfer_whitelisted_address)) + " can sign it."))
9595 else if (isDefined(pmt.assetId))
9696 then throw("Only Waves is allowed to Attach as payment.")
9797 else if (!(validateArguments(recipients, amounts, paymentIdx, i.payments)))
9898 then throw("Invalid arguments")
9999 else {
100100 let recipientsSize = size(recipients)
101101 func scriptTransfersGenerator (accum,next) = {
102- let $t023462378 = accum
103- let scriptTransfers = $t023462378._1
104- let j = $t023462378._2
102+ let $t023652397 = accum
103+ let scriptTransfers = $t023652397._1
104+ let j = $t023652397._2
105105 if ((j >= recipientsSize))
106106 then $Tuple2(scriptTransfers, (j + 1))
107107 else $Tuple2((scriptTransfers :+ ScriptTransfer(addressFromStringValue(recipients[j]), next, i.payments[paymentIdx[j]].assetId)), (j + 1))
108108 }
109109
110110 let result = {
111111 let $l = amounts
112112 let $s = size($l)
113113 let $acc0 = $Tuple2(nil, 0)
114114 func $f0_1 ($a,$i) = if (($i >= $s))
115115 then $a
116116 else scriptTransfersGenerator($a, $l[$i])
117117
118118 func $f0_2 ($a,$i) = if (($i >= $s))
119119 then $a
120120 else throw("List size exceeds 100")
121121
122122 $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)
123123 }
124124 $Tuple2(result._1, unit)
125125 }
126126 }
127127
128128
129129
130130 @Callable(i)
131131 func UpdateLPBalance (PaidMassTransferAmount) = {
132132 let read_account_balance = wavesBalance(this).regular
133133 let read_total_pool_liquidity = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
134134 let received_order_amount = (read_account_balance - read_total_pool_liquidity)
135135 let updated_pool_balance = ((read_total_pool_liquidity - PaidMassTransferAmount) + received_order_amount)
136136 let PreviousMassTransferCounter = match getInteger(this, "Mass_Transfer_Counter") {
137137 case a: Int =>
138138 a
139139 case _ =>
140140 0
141141 }
142142 let TotalMassTransferCounter = (PreviousMassTransferCounter + 1)
143143 let PreviousMassTransferSend = match getInteger(this, "Total_Mass_Transfer_Send") {
144144 case a: Int =>
145145 a
146146 case _ =>
147147 0
148148 }
149149 let TotalMassTransferSend = (PreviousMassTransferSend + PaidMassTransferAmount)
150150 if ((i.caller != masstransfer_whitelisted_address))
151151 then throw((("This Address is not Authorized. Only " + toString(masstransfer_whitelisted_address)) + " is Authorized Address to Sign it."))
152152 else if ((PaidMassTransferAmount > read_total_pool_liquidity))
153153 then throw("Placed Mass Transfer Amount Size is more than Total Pool Liquidity.")
154154 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)]
155155 }
156156
157157

github/deemru/w8io/026f985 
33.79 ms