tx · 35TnA2t16K5J5apCREEgqSKM9xJWaWzsoL2YhXVno2Z6

3N1XAEyg1TQGa5FCEerrRhLGi5KyVq26Xm8:  -0.00200000 Waves

2023.01.15 22:58 [2406518] smart account 3N1XAEyg1TQGa5FCEerrRhLGi5KyVq26Xm8 > SELF 0.00000000 Waves

{ "type": 13, "id": "35TnA2t16K5J5apCREEgqSKM9xJWaWzsoL2YhXVno2Z6", "fee": 200000, "feeAssetId": null, "timestamp": 1673812760788, "version": 2, "chainId": 84, "sender": "3N1XAEyg1TQGa5FCEerrRhLGi5KyVq26Xm8", "senderPublicKey": "ATuPi6fn8277fNiCoRgPTav9QG15CJoW95GEGcDmfYt8", "proofs": [ "46JNBkuVyYkRmxjbofMVWS3zP2FJKn7Dp3STLCmeS5GynFGawycTTJa5B36vihNoCwASkgDgRsdpqDK7VeoWJTJL" ], "script": "base64:BgIKCAISABIECgIBAQwABXdjZElkAiw1V0U2SEJWc21BYmFwVG1US3BteVdtVVI2N2ZjMTZ5YkZyTmp4em1EQnRQYQALd2NkRGVjaW1hbHMAAgETdG90YWxTaGFyZUJ5VXNlcktFWQEFb3duZXIJALkJAgkAzAgCAgZzaGFyZXMJAMwIAgUFb3duZXIFA25pbAIBXwEUdG90YWxTaGFyZUJ5VXNlclJFQUQBBW93bmVyCQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMJARN0b3RhbFNoYXJlQnlVc2VyS0VZAQUFb3duZXIAAAASdG90YWxJc3N1ZWRXQ0RfS0VZAhB0b3RhbF9pc3N1ZWRfV0NEARN0b3RhbElzc3VlZFdDRF9SRUFEAAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBRJ0b3RhbElzc3VlZFdDRF9LRVkAAAAOdG90YWxTaGFyZXNLRVkCDHRvdGFsX3NoYXJlcwEPdG90YWxTaGFyZXNSRUFEAAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQ50b3RhbFNoYXJlc0tFWQAAAApwYXJhbUFfS0VZAgFB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prev: GP4LqV9u49FAqVRRUNCmFZVCKogTsAUc6aooya4cpsW5 Next: 7ALcRQEqFc58W8JhLayy5cn6bUxQ5UX9ssvvNE6MM8PZ Diff:
OldNewDifferences
2929 func l (m,n) = (50000000000 - (log(m, b, 10, 0, 8, HALFUP) * n))
3030
3131
32-@Callable(o)
32+func o (m,n) = if ((m > 100000))
33+ then (m * l(m, n))
34+ else 100000
35+
36+
37+@Callable(p)
3338 func deposit_share () = {
34- let p = if ((size(o.payments) == 1))
35- then o.payments[0]
39+ let q = if ((size(p.payments) == 1))
40+ then p.payments[0]
3641 else throw("Attached payment is required")
37- if (isDefined(p.assetId))
42+ if (isDefined(q.assetId))
3843 then throw("Only WAVES is allowed.")
3944 else {
40- let q = toString(o.caller)
41- let r = e(q)
42- let s = i()
43-[IntegerEntry(c(q), (r + p.amount)), IntegerEntry(h, (s + p.amount))]
45+ let r = toString(p.caller)
46+ let s = e(r)
47+ let t = i()
48+[IntegerEntry(c(r), (s + q.amount)), IntegerEntry(h, (t + q.amount))]
4449 }
4550 }
4651
4752
4853
49-@Callable(o)
50-func get_tmdir (m,n) = throw(("result: " + toString(l(m, n))))
54+@Callable(p)
55+func get_tmdi (m,n) = throw(("result: " + toString(o(m, n))))
5156
5257
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "5WE6HBVsmAbapTmTKpmyWmUR67fc16ybFrNjxzmDBtPa"
55
66 let b = 2
77
88 func c (d) = makeString(["shares", d], "_")
99
1010
1111 func e (d) = valueOrElse(getInteger(this, c(d)), 0)
1212
1313
1414 let f = "total_issued_WCD"
1515
1616 func g () = valueOrElse(getInteger(this, f), 0)
1717
1818
1919 let h = "total_shares"
2020
2121 func i () = valueOrElse(getInteger(this, h), 0)
2222
2323
2424 let j = "A"
2525
2626 func k () = valueOrElse(getInteger(this, "A"), 100)
2727
2828
2929 func l (m,n) = (50000000000 - (log(m, b, 10, 0, 8, HALFUP) * n))
3030
3131
32-@Callable(o)
32+func o (m,n) = if ((m > 100000))
33+ then (m * l(m, n))
34+ else 100000
35+
36+
37+@Callable(p)
3338 func deposit_share () = {
34- let p = if ((size(o.payments) == 1))
35- then o.payments[0]
39+ let q = if ((size(p.payments) == 1))
40+ then p.payments[0]
3641 else throw("Attached payment is required")
37- if (isDefined(p.assetId))
42+ if (isDefined(q.assetId))
3843 then throw("Only WAVES is allowed.")
3944 else {
40- let q = toString(o.caller)
41- let r = e(q)
42- let s = i()
43-[IntegerEntry(c(q), (r + p.amount)), IntegerEntry(h, (s + p.amount))]
45+ let r = toString(p.caller)
46+ let s = e(r)
47+ let t = i()
48+[IntegerEntry(c(r), (s + q.amount)), IntegerEntry(h, (t + q.amount))]
4449 }
4550 }
4651
4752
4853
49-@Callable(o)
50-func get_tmdir (m,n) = throw(("result: " + toString(l(m, n))))
54+@Callable(p)
55+func get_tmdi (m,n) = throw(("result: " + toString(o(m, n))))
5156
5257

github/deemru/w8io/169f3d6 
42.35 ms