tx · 58JxT4m7pynn3ZfNMSMHpX3erkzyQmHBL4X2o2xjrrDx

3N86fBeRNMYj4Lbc7po8PKtrXR2oLQXQB8a:  -0.05000000 Waves

2024.05.07 12:54 [3095591] smart account 3N86fBeRNMYj4Lbc7po8PKtrXR2oLQXQB8a > SELF 0.00000000 Waves

{ "type": 13, "id": "58JxT4m7pynn3ZfNMSMHpX3erkzyQmHBL4X2o2xjrrDx", "fee": 5000000, "feeAssetId": null, "timestamp": 1715075688071, "version": 2, "chainId": 84, "sender": "3N86fBeRNMYj4Lbc7po8PKtrXR2oLQXQB8a", "senderPublicKey": "4uUUD88FFMgtPjui9NEmEstYpUVQNPSLCQw5f8mYHmGz", "proofs": [ "kjBR58vqixkgnmrQWEMfGXj8RsFmCpGNaF5hkkweTqU979fSLHkUcJnKM4hYfnfWiGVoVBSaB1gVbrC8i1xZgSm" ], "script": "base64:BgIECAISAAUADVVTRFRfQVNTRVRfSUQCLDk4RDNwa0t2ZnJYRW5YbVFxS0dXZ3RvR3ZWaDFhVGY0Q1BEdHRxRzljc3VtAA9VU0RUXzJfQVNTRVRfSUQCLDk4RDNwa0t2ZnJYRW5YbVFxS0dXZ3RvR3ZWaDFhVGY0Q1BEdHRxRzljc3VtAA1VU0RDX0FTU0VUX0lEAiw5OEQzcGtLdmZyWEVuWG1RcUtHV2d0b0d2VmgxYVRmNENQRHR0cUc5Y3N1bQAPVVNEQ18yX0FTU0VUX0lEAiw5OEQzcGtLdmZyWEVuWG1RcUtHV2d0b0d2VmgxYVRmNENQRHR0cUc5Y3N1bQAMQkFJX0FTU0VUX0lEAixBeEdLUVJ4S280RjJFYmhyUnE2TjJ0ZExzeHRNbnB6UXNTNFFlbVY2VjFXMQEBaQEDYnV5AAQRV0FWRVNfVVNEVF9PUkFDTEUJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOMVdqaG1GM0V5dXR2cnZ0c2ZzU0xiaG1pTFU4QmMxVG95BBVXQVZFU19VU0RUX09SQUNMRV9LRVkC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WVudCBuZWNlc3NhcnkgaW4gV2F2ZXMsIFVTREMgb3IgVVNEVCEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUGc2VuZGVyBQZhbW91bnQJANkEAQUMQkFJX0FTU0VUX0lEBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5hlWMyQ==", "height": 3095591, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 56nGfe8qpEVshv5uyxtohtsGrp7tQiAYVnYtqRsYiwVB Next: 2hFcSy1rFF3XKcJ72rGZcCaRLLNwnXASScwmpAJLtEU1 Diff:
OldNewDifferences
4444 }
4545 else 0
4646 }
47- (fraction((12 * q), s, 100000000) * 10)
47+ (fraction(q, s, (12 * 10000000)) * 10)
4848 }
4949 else if ((n == a))
5050 then fraction(q, 1000, 12)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "98D3pkKvfrXEnXmQqKGWgtoGvVh1aTf4CPDttqG9csum"
55
66 let b = "98D3pkKvfrXEnXmQqKGWgtoGvVh1aTf4CPDttqG9csum"
77
88 let c = "98D3pkKvfrXEnXmQqKGWgtoGvVh1aTf4CPDttqG9csum"
99
1010 let d = "98D3pkKvfrXEnXmQqKGWgtoGvVh1aTf4CPDttqG9csum"
1111
1212 let e = "AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1"
1313
1414 @Callable(f)
1515 func buy () = {
1616 let g = addressFromStringValue("3N1WjhmF3EyutvrvtsfsSLbhmiLU8Bc1Toy")
1717 let h = "%s%s__price__WAVES-USDT"
1818 let i = size(f.payments)
1919 let j = f.payments[0].assetId
2020 let k = f.caller
2121 if ((i != 1))
2222 then throw("Payment necessary!")
2323 else {
2424 let l = f.payments[0]
2525 let m = l.assetId
2626 let n = {
2727 let o = m
2828 if ($isInstanceOf(o, "ByteVector"))
2929 then {
3030 let p = o
3131 toBase58String(p)
3232 }
3333 else ""
3434 }
3535 let q = l.amount
3636 let r = if (!(isDefined(m)))
3737 then {
3838 let s = {
3939 let o = getInteger(g, h)
4040 if ($isInstanceOf(o, "Int"))
4141 then {
4242 let t = o
4343 t
4444 }
4545 else 0
4646 }
47- (fraction((12 * q), s, 100000000) * 10)
47+ (fraction(q, s, (12 * 10000000)) * 10)
4848 }
4949 else if ((n == a))
5050 then fraction(q, 1000, 12)
5151 else if ((n == b))
5252 then fraction(q, 1000, 12)
5353 else if ((n == c))
5454 then fraction(q, 1000, 12)
5555 else if ((n == d))
5656 then fraction(q, 1000, 12)
5757 else throw("Payment necessary in Waves, USDC or USDT!")
5858 [ScriptTransfer(k, r, fromBase58String(e))]
5959 }
6060 }
6161
6262
6363 @Verifier(u)
6464 func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
6565

github/deemru/w8io/026f985 
17.12 ms