tx · HMnEQZCZ9DyuF4EzMDsFjJy5tbXed9cCB5xVGa6gQpXz 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP: -0.05000000 Waves 2021.09.28 01:22 [1721950] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves
{ "type": 13, "id": "HMnEQZCZ9DyuF4EzMDsFjJy5tbXed9cCB5xVGa6gQpXz", "fee": 5000000, "feeAssetId": null, "timestamp": 1632781406948, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "4sNAgi9evATejhSALXqdUchUQEe9vu8sdD8jiZzX7dr19y5sjoSpBPS2PWESc1SFTZi93T27kQT7qr1jVCXyWgVo" ], "script": "base64:AAIFAAAAAAAAACAIAhIAEgASAwoBCBIHCgUIBAIBGBIKCggIBAIBGBEUEgAAAAQBAAAAEWtleUFjY3VtdWxhdGVkRmVlAAAAAAIAAAASJXNfX2FjY3VtdWxhdGVkRmVlAAAAAAZzY2FsZTgAAAAAAAX14QAAAAAACEJVRlNDQUxFCQABNgAAAAEADeC2s6dkAAABAAAAHWNvbnZlcnRQcmljZUFzc2V0SW50b0lkb0Fzc2V0AAAABQAAABBwcmljZUFzc2V0QW1vdW50AAAADnByaWNlQXNzZXRNVUxUAAAABXByaWNlAAAACXByaWNlTVVMVAAAAAxpZG9Bc3NldE1VTFQEAAAACmJQcmljZU1VTFQJAAE2AAAAAQUAAAAOcHJpY2VBc3NldE1VTFQEAAAADmJQcmljZUFzc2V0QlVGCQABPAAAAAMJAAE2AAAAAQUAAAAQcHJpY2VBc3NldEFtb3VudAUAAAAIQlVGU0NBTEUFAAAACmJQcmljZU1VTFQEAAAAD2JBbW91bnRBc3NldEJVRgkAATwAAAADBQAAAA5iUHJpY2VBc3NldEJVRgUAAAAKYlByaWNlTVVMVAkAATYAA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c0Jvb2wAAAAAAAAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAADmxpc3RCb29sUGFyYW0yCQABkQAAAAIFAAAACGFyZ3NCb29sAAAAAAAAAAABCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAEGxpc3RCaW5hcnlQYXJhbTMJAAGRAAAAAgUAAAAKYXJnc0JpbmFyeQAAAAAAAAAAAAkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAABBsaXN0QmluYXJ5UGFyYW0zCQABkQAAAAIFAAAACmFyZ3NCaW5hcnkAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V51WAmyQ==", "height": 1721950, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8rEmQeouSYbjJ44mZBLT36Vfwzz3Yrun3NndQvudgWon Next: 2jfr3NyKxaeZgr5FXvQRkq7cHc9LJxtrigJWvvzjpWGB Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func ordinal () = { | |
21 | - | let amountAssetAmt = | |
22 | - | let priceAssetAmt = | |
21 | + | let amountAssetAmt = 1000000000000000 | |
22 | + | let priceAssetAmt = 30000000000000000 | |
23 | 23 | let bAmountAssetBUF = fraction(toBigInt(amountAssetAmt), BUFSCALE, toBigInt(scale8)) | |
24 | 24 | let bPriceAssetBUF = fraction(toBigInt(priceAssetAmt), BUFSCALE, toBigInt(scale8)) | |
25 | 25 | let partABigInt = pow((bAmountAssetBUF * bPriceAssetBUF), 0, toBigInt(5), 1, 0, DOWN) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func keyAccumulatedFee () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let scale8 = 100000000 | |
8 | 8 | ||
9 | 9 | let BUFSCALE = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = { | |
12 | 12 | let bPriceMULT = toBigInt(priceAssetMULT) | |
13 | 13 | let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceMULT) | |
14 | 14 | let bAmountAssetBUF = fraction(bPriceAssetBUF, bPriceMULT, toBigInt(price)) | |
15 | 15 | toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE)) | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func ordinal () = { | |
21 | - | let amountAssetAmt = | |
22 | - | let priceAssetAmt = | |
21 | + | let amountAssetAmt = 1000000000000000 | |
22 | + | let priceAssetAmt = 30000000000000000 | |
23 | 23 | let bAmountAssetBUF = fraction(toBigInt(amountAssetAmt), BUFSCALE, toBigInt(scale8)) | |
24 | 24 | let bPriceAssetBUF = fraction(toBigInt(priceAssetAmt), BUFSCALE, toBigInt(scale8)) | |
25 | 25 | let partABigInt = pow((bAmountAssetBUF * bPriceAssetBUF), 0, toBigInt(5), 1, 0, DOWN) | |
26 | 26 | let result2 = fraction(partABigInt, toBigInt(scale8), BUFSCALE) | |
27 | 27 | [IntegerEntry("bigInt", toInt(result2))] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func ordinal2 () = { | |
34 | 34 | let amountAssetAmt = 1000000000 | |
35 | 35 | let priceAssetAmt = 30000000000 | |
36 | 36 | let partA = pow(amountAssetAmt, 0, 5, 1, 0, DOWN) | |
37 | 37 | let partB = pow(priceAssetAmt, 0, 5, 1, 0, DOWN) | |
38 | 38 | let result = (partA * partB) | |
39 | 39 | [IntegerEntry("ordinal", result)] | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(i) | |
45 | 45 | func callMeDapp (stringParam1) = { | |
46 | 46 | let caller = i.caller | |
47 | 47 | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", false)] | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(i) | |
53 | 53 | func callMe (stringParam1,boolParam2,binaryParam3,intParam4,argsStr) = { | |
54 | 54 | let caller = i.caller | |
55 | 55 | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1])] | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(i) | |
61 | 61 | func callMe2 (stringParam1,boolParam2,binaryParam3,intParam4,argsStr,argsInt,argsBool,argsBinary) = { | |
62 | 62 | let caller = i.caller | |
63 | 63 | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1]), IntegerEntry("listIntParam1", argsInt[0]), IntegerEntry("listIntParam2", argsInt[1]), BooleanEntry("listBoolParam1", argsBool[0]), BooleanEntry("listBoolParam2", argsBool[1]), BinaryEntry("listBinaryParam3", argsBinary[0]), BinaryEntry("listBinaryParam3", argsBinary[1])] | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | @Verifier(tx) | |
68 | 68 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
69 | 69 |
github/deemru/w8io/169f3d6 30.62 ms ◑