tx · 5pdCPCDyatDLkfxt8mLnER4YMzvntECsNYP3WBDqMhRD

3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq:  -0.01000000 Waves

2024.03.04 11:19 [3003008] smart account 3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq > SELF 0.00000000 Waves

{ "type": 13, "id": "5pdCPCDyatDLkfxt8mLnER4YMzvntECsNYP3WBDqMhRD", "fee": 1000000, "feeAssetId": null, "timestamp": 1709540421340, "version": 2, "chainId": 84, "sender": "3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq", "senderPublicKey": "HdwFH8HPYu3HG27yK6bszu1CdR4uik4HgzyTimeSfcYf", "proofs": [ "5Cm6Yqe1MoFBNzXWX9Rg9enUTnjGzmyRv2YzYd7mF4YK7hgDEa3jqpYhC3XHuQQBNqV6uP4cEauFtj2vcjAWmFMr" ], "script": "base64:BgIECAISAA8AEGFtb3VudEFzc2V0SWRLZXkCDWFtb3VudEFzc2V0SWQAD3ByaWNlQXNzZXRJZEtleQIMcHJpY2VBc3NldElkAApmZWVSYXRlS2V5AgdmZWVSYXRlAQpnZXRBc3NldElkAQ1hc3NldElkU3RyaW5nAwkAAAIFDWFzc2V0SWRTdHJpbmcCBVdBVkVTBQR1bml0CQDZBAEFDWFzc2V0SWRTdHJpbmcBD2dldEFzc2V0QmFsYW5jZQEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJpZAUHJG1hdGNoMAkA8AcCBQR0aGlzBQJpZAgJAO8HAQUEdGhpcwlhdmFpbGFibGUAE2Ftb3VudEFzc2V0SWRTdHJpbmcJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMFEGFtb3VudEFzc2V0SWRLZXkADWFtb3VudEFzc2V0SWQJAQpnZXRBc3NldElkAQUTYW1vdW50QXNzZXRJZFN0cmluZwASYW1vdW50QXNzZXRCYWxhbmNlCQEPZ2V0QXNzZXRCYWxh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MEDXBheW1lbnRBbW91bnQICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50BAlpbml0QW1CYWwFEmFtb3VudEFzc2V0QmFsYW5jZQQJaW5pdFByQmFsCQBlAgURcHJpY2VBc3NldEJhbGFuY2UFDXBheW1lbnRBbW91bnQAAAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgEBaQEDZm9vAAkAlAoCBQNuaWwAAADr6MqF", "height": 3003008, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9UhDN4m4W8Z4nMWTsQpUhBmiY4Bm5yhsPjNrL8RjgCku Next: D19hCqgMgnsU22KXdQST57REuJFQmDbxebpQpXzo8E7n Diff:
OldNewDifferences
4040 let q = valueOrElse(getInteger(this, c), 1000000)
4141
4242 func r (s,t,u) = {
43- let v = (s - fraction((s * t), p, (t * p)))
43+ let v = (s - fraction(s, t, t))
4444 let w = (s - v)
4545 let x = (t + u)
4646 let y = (s * t)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "amountAssetId"
55
66 let b = "priceAssetId"
77
88 let c = "feeRate"
99
1010 func d (e) = if ((e == "WAVES"))
1111 then unit
1212 else fromBase58String(e)
1313
1414
1515 func f (g) = {
1616 let h = g
1717 if ($isInstanceOf(h, "ByteVector"))
1818 then {
1919 let i = h
2020 assetBalance(this, i)
2121 }
2222 else wavesBalance(this).available
2323 }
2424
2525
2626 let j = getStringValue(this, a)
2727
2828 let k = d(j)
2929
3030 let l = f(k)
3131
3232 let m = getStringValue(this, b)
3333
3434 let n = d(m)
3535
3636 let o = f(n)
3737
3838 let p = 100000000
3939
4040 let q = valueOrElse(getInteger(this, c), 1000000)
4141
4242 func r (s,t,u) = {
43- let v = (s - fraction((s * t), p, (t * p)))
43+ let v = (s - fraction(s, t, t))
4444 let w = (s - v)
4545 let x = (t + u)
4646 let y = (s * t)
4747 let z = (w * x)
4848 $Tuple7(v, s, t, y, w, x, z)
4949 }
5050
5151
5252 func A (B) = {
5353 let C = [if ((size(B.payments) > 0))
5454 then true
5555 else throw("should be with 1 payment"), if ((B.payments[0].assetId == n))
5656 then true
5757 else throw(makeString(["payment assetId should be: ", m], " "))]
5858 if ((C == C))
5959 then {
6060 let u = B.payments[0].amount
6161 let s = l
6262 let t = (o - u)
6363 0
6464 }
6565 else throw("Strict value is not equal to itself.")
6666 }
6767
6868
6969 @Callable(B)
7070 func foo () = $Tuple2(nil, 0)
7171
7272

github/deemru/w8io/169f3d6 
32.45 ms