tx · GZEjeJwgszDe4pCv5UL6qi6aZb6gYSknPMrhqtPAQTzs

3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP:  -0.05000000 Waves

2021.09.28 01:15 [1721943] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves

{ "type": 13, "id": "GZEjeJwgszDe4pCv5UL6qi6aZb6gYSknPMrhqtPAQTzs", "fee": 5000000, "feeAssetId": null, "timestamp": 1632780979032, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "52pwuGjbcP1bZLb3s5p1Q6H7xz5Q9qaBbuRmJaoxanTa6WPA9DKYHC76jcZ5SmXtp4Kw7AtKWbHTpEUic13B5Neo" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgMKAQgSBwoFCAQCARgSCgoICAQCARgRFBIAAAAEAQAAABFrZXlBY2N1bXVsYXRlZEZlZQAAAAACAAAAEiVzX19hY2N1bXVsYXRlZEZlZQAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAhCVUZTQ0FMRQkAATYAAAABAA3gtrOnZAAAAQAAAB1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldAAAAAUAAAAQcHJpY2VBc3NldEFtb3VudAAAAA5wcmljZUFzc2V0TVVMVAAAAAVwcmljZQAAAAlwcmljZU1VTFQAAAAMaWRvQXNzZXRNVUxUBAAAAApiUHJpY2VNVUxUCQABNgAAAAEFAAAADnByaWNlQXNzZXRNVUxUBAAAAA5iUHJpY2VBc3NldEJVRgkAATwAAAADCQABNgAAAAEFAAAAEHByaWNlQXNzZXRBbW91bnQFAAAACEJVRlNDQUxFBQAAAApiUHJpY2VNVUxUBAAAAA9iQW1vdW50QXNzZXRCVUYJAAE8AAAAAwUAAAAOYlByaWNlQXNzZXRCVUYFAAAACmJQcmljZU1VT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QEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAObGlzdEJvb2xQYXJhbTEJAAGRAAAAAgUAAAAIYXJnc0Jvb2wAAAAAAAAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAADmxpc3RCb29sUGFyYW0yCQABkQAAAAIFAAAACGFyZ3NCb29sAAAAAAAAAAABCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAEGxpc3RCaW5hcnlQYXJhbTMJAAGRAAAAAgUAAAAKYXJnc0JpbmFyeQAAAAAAAAAAAAkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAABBsaXN0QmluYXJ5UGFyYW0zCQABkQAAAAIFAAAACmFyZ3NCaW5hcnkAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5NKrWjg==", "height": 1721943, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Du6JpR7vpKTcQhTBhSDeTaXkJHm2Mv84oGWjQcsrcjsS Next: 8rEmQeouSYbjJ44mZBLT36Vfwzz3Yrun3NndQvudgWon Diff:
OldNewDifferences
44 func keyAccumulatedFee () = "%s__accumulatedFee"
55
66
7+let scale8 = 100000000
8+
9+let BUFSCALE = toBigInt(1000000000000000000)
10+
11+func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = {
12+ let bPriceMULT = toBigInt(priceAssetMULT)
13+ let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceMULT)
14+ let bAmountAssetBUF = fraction(bPriceAssetBUF, bPriceMULT, toBigInt(price))
15+ toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE))
16+ }
17+
18+
719 @Callable(i)
820 func ordinal () = {
21+ let amountAssetAmt = 1000000000
22+ let priceAssetAmt = 30000000000
23+ let bAmountAssetBUF = fraction(toBigInt(amountAssetAmt), BUFSCALE, toBigInt(scale8))
24+ let bPriceAssetBUF = fraction(toBigInt(priceAssetAmt), BUFSCALE, toBigInt(scale8))
925 let partA = pow(toBigInt(1000000000), 0, toBigInt(5), 1, 0, DOWN)
1026 let partB = pow(toBigInt(30000000000), 0, toBigInt(5), 1, 0, DOWN)
1127 let result = (partA * partB)
12- let partABigInt = pow(toBigInt(100000000000000000), 0, toBigInt(5), 1, 0, DOWN)
13- let partBBigInt = pow(toBigInt(3000000000000000000), 0, toBigInt(5), 1, 0, DOWN)
28+ let partABigInt = pow(bAmountAssetBUF, 0, toBigInt(5), 1, 0, DOWN)
29+ let partBBigInt = pow(bPriceAssetBUF, 0, toBigInt(5), 1, 0, DOWN)
1430 let res2 = (partABigInt * partBBigInt)
15- let result2 = (res2 / toBigInt(100000000))
31+ let result2 = fraction(res2, toBigInt(scale8), BUFSCALE)
1632 [IntegerEntry("ordinal", toInt(result)), IntegerEntry("bigInt", toInt(result2))]
1733 }
1834
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func keyAccumulatedFee () = "%s__accumulatedFee"
55
66
7+let scale8 = 100000000
8+
9+let BUFSCALE = toBigInt(1000000000000000000)
10+
11+func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = {
12+ let bPriceMULT = toBigInt(priceAssetMULT)
13+ let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceMULT)
14+ let bAmountAssetBUF = fraction(bPriceAssetBUF, bPriceMULT, toBigInt(price))
15+ toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE))
16+ }
17+
18+
719 @Callable(i)
820 func ordinal () = {
21+ let amountAssetAmt = 1000000000
22+ let priceAssetAmt = 30000000000
23+ let bAmountAssetBUF = fraction(toBigInt(amountAssetAmt), BUFSCALE, toBigInt(scale8))
24+ let bPriceAssetBUF = fraction(toBigInt(priceAssetAmt), BUFSCALE, toBigInt(scale8))
925 let partA = pow(toBigInt(1000000000), 0, toBigInt(5), 1, 0, DOWN)
1026 let partB = pow(toBigInt(30000000000), 0, toBigInt(5), 1, 0, DOWN)
1127 let result = (partA * partB)
12- let partABigInt = pow(toBigInt(100000000000000000), 0, toBigInt(5), 1, 0, DOWN)
13- let partBBigInt = pow(toBigInt(3000000000000000000), 0, toBigInt(5), 1, 0, DOWN)
28+ let partABigInt = pow(bAmountAssetBUF, 0, toBigInt(5), 1, 0, DOWN)
29+ let partBBigInt = pow(bPriceAssetBUF, 0, toBigInt(5), 1, 0, DOWN)
1430 let res2 = (partABigInt * partBBigInt)
15- let result2 = (res2 / toBigInt(100000000))
31+ let result2 = fraction(res2, toBigInt(scale8), BUFSCALE)
1632 [IntegerEntry("ordinal", toInt(result)), IntegerEntry("bigInt", toInt(result2))]
1733 }
1834
1935
2036
2137 @Callable(i)
2238 func callMeDapp (stringParam1) = {
2339 let caller = i.caller
2440 [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", false)]
2541 }
2642
2743
2844
2945 @Callable(i)
3046 func callMe (stringParam1,boolParam2,binaryParam3,intParam4,argsStr) = {
3147 let caller = i.caller
3248 [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1])]
3349 }
3450
3551
3652
3753 @Callable(i)
3854 func callMe2 (stringParam1,boolParam2,binaryParam3,intParam4,argsStr,argsInt,argsBool,argsBinary) = {
3955 let caller = i.caller
4056 [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])]
4157 }
4258
4359
4460 @Verifier(tx)
4561 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4662

github/deemru/w8io/169f3d6 
48.54 ms