tx · 2qsj8KqHmBirRwQjjodfgT67aHvEJAgrqE5wrNgjFQav

3Myb6G8DkdBb8YcZzhrky65HrmiNuac3kvS:  -0.00200000 Waves

2023.05.19 23:20 [2585321] smart account 3Myb6G8DkdBb8YcZzhrky65HrmiNuac3kvS > SELF 0.00000000 Waves

{ "type": 13, "id": "2qsj8KqHmBirRwQjjodfgT67aHvEJAgrqE5wrNgjFQav", "fee": 200000, "feeAssetId": null, "timestamp": 1684527598063, "version": 2, "chainId": 84, "sender": "3Myb6G8DkdBb8YcZzhrky65HrmiNuac3kvS", "senderPublicKey": "Ab4L9nu8oFkaz3goia9d2YmgZZCZciUsmuKTWq8rMYN4", "proofs": [ "38pMuwmDr2hXttPWQnZxNkLqKJWuULX6wmEFA13rUAPirz1ESzceqpbS6Jk8eAgZGozC9DKvKxzSrs8LJGm3wQVX" ], "script": "base64:BgIECAISAAoAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDgAgMLXLwAKV0FWRVNJRFNUUgIFV0FWRVMAB1dBVkVTSUQJANkEAQUKV0FWRVNJRFNUUgAIWFROSURTVFICLDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5yVkZENUFUAAhORVVUUklOTwIjM016YngzNEV4NXJSYm4zOXZVSHg5a2l3aDNubmVGOFM1d2UAE1dYX1NXQVBfQUREUkVTU19TVFICIzNONkxIamZHYjZGZ2N5N1lzVmNOeEd5UFRqNDlYYlFBaWpxAA9XWF9TV0FQX0FERFJFU1MJARFAZXh0ck5hdGl2ZSgxMDYyKQEFE1dYX1NXQVBfQUREUkVTU19TVFIBFmtleU1pbkRpc3RyaWJ1dGVBbW91bnQAAh4lcyVzX19jZmdfX21pbkRpc3RyaWJ1dGVBbW91bnQBAWkBB2RlZmF1bHQABApidXlCYWNrQW10CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMJARZrZXlNaW5EaXN0cmlidXRlQW1vdW50AAkAaAIADQUFTVVMVDgDCQECIT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CBlcXVhbCB0byBpdHNlbGYuANvkUi8=", "height": 2585321, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Rd6vNQjZxDeieNeXs5YJyBWj4Di9bZauyghwTFSJaXq Next: none Diff:
OldNewDifferences
4141 then throw("fee amount couldn't exceed 0.005")
4242 else if ((q > wavesBalance(this).available))
4343 then throw(("wavelets balance is less then " + toString(q)))
44- else if (isDefined(scriptHash(k.caller)))
45- then throw("dapp-to-dapp is not allowed")
46- else {
47- let r = invoke(i, "swap", [1, f, g], [AttachedPayment(unit, l)])
48- if ((r == r))
49- then [ScriptTransfer(k.caller, p, unit)]
50- else throw("Strict value is not equal to itself.")
51- }
44+ else {
45+ let r = invoke(i, "swap", [1, f, g], [AttachedPayment(unit, l)])
46+ if ((r == r))
47+ then [ScriptTransfer(k.caller, p, unit)]
48+ else throw("Strict value is not equal to itself.")
49+ }
5250 }
5351 }
5452
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 1000000
77
88 let c = 100000000
99
1010 let d = "WAVES"
1111
1212 let e = fromBase58String(d)
1313
1414 let f = "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"
1515
1616 let g = "3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we"
1717
1818 let h = "3N6LHjfGb6Fgcy7YsVcNxGyPTj49XbQAijq"
1919
2020 let i = addressFromStringValue(h)
2121
2222 func j () = "%s%s__cfg__minDistributeAmount"
2323
2424
2525 @Callable(k)
2626 func default () = {
2727 let l = valueOrElse(getInteger(this, j()), (13 * c))
2828 if ((size(k.payments) != 0))
2929 then throw("no payments are expected")
3030 else if ((k.caller != k.originCaller))
3131 then throw("dapp to dapp calls are not allowed")
3232 else {
3333 let m = k.fee
3434 let n = valueOrElse(k.feeAssetId, e)
3535 let o = ((5 * c) / 1000)
3636 let p = (2 * o)
3737 let q = (l + p)
3838 if ((n != e))
3939 then throw("only Waves can be used in fees")
4040 else if ((m != o))
4141 then throw("fee amount couldn't exceed 0.005")
4242 else if ((q > wavesBalance(this).available))
4343 then throw(("wavelets balance is less then " + toString(q)))
44- else if (isDefined(scriptHash(k.caller)))
45- then throw("dapp-to-dapp is not allowed")
46- else {
47- let r = invoke(i, "swap", [1, f, g], [AttachedPayment(unit, l)])
48- if ((r == r))
49- then [ScriptTransfer(k.caller, p, unit)]
50- else throw("Strict value is not equal to itself.")
51- }
44+ else {
45+ let r = invoke(i, "swap", [1, f, g], [AttachedPayment(unit, l)])
46+ if ((r == r))
47+ then [ScriptTransfer(k.caller, p, unit)]
48+ else throw("Strict value is not equal to itself.")
49+ }
5250 }
5351 }
5452
5553

github/deemru/w8io/169f3d6 
36.05 ms