tx · 7QFFvqgiKWDdWe1ZTM3AMz7HyP7ehUwEZgUHiqSguJZ9

3MrT6o7YAdo3KMs4cTvd2WU8WDYVMUyEdri:  -0.01000000 Waves

2022.04.17 05:54 [2011964] smart account 3MrT6o7YAdo3KMs4cTvd2WU8WDYVMUyEdri > SELF 0.00000000 Waves

{ "type": 13, "id": "7QFFvqgiKWDdWe1ZTM3AMz7HyP7ehUwEZgUHiqSguJZ9", "fee": 1000000, "feeAssetId": null, "timestamp": 1650164062635, "version": 2, "chainId": 84, "sender": "3MrT6o7YAdo3KMs4cTvd2WU8WDYVMUyEdri", "senderPublicKey": "FGHViFjw9c8erhypDqmSN7Rejo83uy7EuBm9VdnZFutH", "proofs": [ "4s9rHJFuxd3x4JXRLyKmn91SYYQiGFYf16vrkz341dCi3MV4vxHxRMCBYmKYr7U5A5act82JeuqpXp41ekyJ8wRP" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAABQEAAAAFYXNJbnQAAAABAAAABXZhbHVlBAAAAAckbWF0Y2gwBQAAAAV2YWx1ZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAANpbnQFAAAAByRtYXRjaDAFAAAAA2ludAkAAAIAAAABAgAAAA1leHBlY3RlZDogSW50AQAAABFhc1VzZXJCYWxhbmNlRGF0YQAAAAEAAAAFdmFsdWUEAAAAByRtYXRjaDAFAAAABXZhbHVlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAACIoSW50LCBJbnQsIEludCwgSW50LCBJbnQsIEJvb2xlYW4pBAAAAAF4BQAAAAckbWF0Y2gwBQAAAAF4BAAAAAF0BQAAAAckbWF0Y2gwCQAAAgAAAAECAAAAIndyb25nIHR5cGUsIGV4cGVjdGVkOiBJbnQ1JkJvb2xlYW4AAAAABG1haW4JAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNQQVp2OXRnSzFQWDdkS1I3YjRrY2hxNXFkcFVTM0c1c1lUAAAAAA9hc3NldFN0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ity": 0 } View: original | compacted Prev: GBCWCN9NYhEF2Aw5SUPmBM4bvcu82XGFBULuVGFkGBwf Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = b
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else throw("expected: Int")
1212 }
1313
1414
1515 func e (b) = {
1616 let c = b
1717 if ($isInstanceOf(c, "(Int, Int, Int, Int, Int, Boolean)"))
1818 then {
1919 let f = c
2020 f
2121 }
2222 else {
2323 let g = c
2424 throw("wrong type, expected: Int5&Boolean")
2525 }
2626 }
2727
2828
2929 let h = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
3030
3131 let i = "34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ"
3232
3333 let j = addressFromStringValue("3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR")
3434
3535 @Callable(k)
3636 func withdraw (l) = {
3737 let m = fromBase58String(i)
3838 let n = assetBalance(j, m)
3939 if ((l > n))
4040 then throw(toString(n))
4141 else {
4242 let o = e(invoke(j, "userBalance", [toString(this)], nil))
4343 let p = o._3
4444 let q = if ((n > p))
4545 then p
4646 else n
4747 if ((l > q))
4848 then throw(toString(q))
4949 else {
5050 let r = a(invoke(h, "withdraw", [i, q], nil))
5151 $Tuple2(nil, r)
5252 }
5353 }
5454 }
5555
5656

github/deemru/w8io/169f3d6 
27.26 ms