tx · PPPqBKPWSyaeHr8hRciFUiDAMGP9jZPRn8jf5twyoQY

3N4r7DNT8t9WqaQWr8or1Hakm4AJfVDk6mS:  -0.01000000 Waves

2023.09.29 15:28 [2776712] smart account 3N4r7DNT8t9WqaQWr8or1Hakm4AJfVDk6mS > SELF 0.00000000 Waves

{ "type": 13, "id": "PPPqBKPWSyaeHr8hRciFUiDAMGP9jZPRn8jf5twyoQY", "fee": 1000000, "feeAssetId": null, "timestamp": 1695990555587, "version": 2, "chainId": 84, "sender": "3N4r7DNT8t9WqaQWr8or1Hakm4AJfVDk6mS", "senderPublicKey": "CMMtdSwXAf6tvNvyJDrdC5VGmRkcXU5CqmsapxKNPhLu", "proofs": [ "3WqiwTVZEHL4eZU7LE5Dkk8MK64Z2JerQB2k8ewcroZiVVQsbBSj1cTYHSrSCmG3UUioM9RVF8j7nXvHKDZAWxrV" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAYAAAAAEXRvdGFsVG9rZW5zQW1vdW50AAABxr9SY0AAAAAAAB9iYXNlVG9rZW5Db3VudEZvck9uZVJld2FyZFRva2VuAAAAAAAAmJaAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAVY3VycmVudFRva2Vuc0dpdmVkS2V5AgAAABRjdXJyZW50X3Rva2Vuc19naXZlZAEAAAAOY2FsY3VsYXRlS29lZmYAAAABAAAAEmN1cnJlbnRUb2tlbnNHaXZlZAMJAAAAAAAAAgUAAAASY3VycmVudFRva2Vuc0dpdmVkAAAAAAAAAAAABQAAAAVNVUxUOAkAAGUAAAACBQAAAAVNVUxUOAkAAGsAAAADBQAAABJjdXJyZW50VG9rZW5zR2l2ZWQFAAAABU1VTFQ4BQAAABF0b3RhbFRva2Vuc0Ftb3VudAEAAAASY2FsY3VsYXRlU0JUQW1vdW50AAAAAgAAABByZXdhcmRUb2tlbkNvdW50AAAAFWN1cnJlbnRTYnRUb2tlbnNHaXZlZAQAAAAUc2J0UGVyT25lUmV3YXJkVG9rZW4JAABrAAAAAwUAAAAfYmFzZVRva2VuQ291bnRGb3JPbmVSZXdhcmRUb2tlbgkBAAAADmNhbGN1bGF0ZUtvZWZmAAAAAQUAAAAVY3VycmVudFNidFRva2Vuc0dpdmVkBQAAAAVNVUxUOAkAAGgAAAACBQAAABRzYnRQZXJPbmVSZXdhcmRUb2tlbgUAAAAQcmV3YXJkVG9rZW5Db3VudAAAAAEAAAABaQEAAAAJY2FsY3VsYXRlAAAAAgAAABByZXdhcmRUb2tlbkNvdW50AAAAFWN1cnJlbnRTYnRUb2tlbnNHaXZlZAQAAAASY3VycmVudFRva2Vuc0dpdmVkCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHwAAAAEFAAAAFWN1cnJlbnRUb2tlbnNHaXZlZEtleQAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGcmVzdWx0CQEAAAASY2FsY3VsYXRlU0JUQW1vdW50AAAAAgUAAAAQcmV3YXJkVG9rZW5Db3VudAUAAAAVY3VycmVudFNidFRva2Vuc0dpdmVkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleaMw2PI=", "height": 2776712, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 6mqZzafti4HwK2FEpzoXkeGy9Ud7cmXLNqrG86w17ha3 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = 500000000000000
5+
6+let b = 10000000
7+
8+let c = 100000000
9+
10+let d = "current_tokens_gived"
11+
12+func e (f) = if ((f == 0))
13+ then c
14+ else (c - fraction(f, c, a))
15+
16+
17+func g (h,i) = {
18+ let j = fraction(b, e(i), c)
19+ (j * h)
20+ }
21+
22+
23+@Callable(k)
24+func calculate (h,i) = {
25+ let f = valueOrElse(getInteger(d), 0)
26+[IntegerEntry("result", g(h, i))]
27+ }
28+
29+
30+@Verifier(l)
31+func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
32+

github/deemru/w8io/169f3d6 
50.86 ms