tx · 4GWWJFPaa3Kqy29VtYqVtJh7xEm54jXLvNfPWCQvTTKR
3N1XAEyg1TQGa5FCEerrRhLGi5KyVq26Xm8: -0.00200000 Waves
2023.01.15 22:17 [2406478] smart account 3N1XAEyg1TQGa5FCEerrRhLGi5KyVq26Xm8 > SELF 0.00000000 Waves
{
"type": 13,
"id": "4GWWJFPaa3Kqy29VtYqVtJh7xEm54jXLvNfPWCQvTTKR",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1673810366803,
"version": 2,
"chainId": 84,
"sender": "3N1XAEyg1TQGa5FCEerrRhLGi5KyVq26Xm8",
"senderPublicKey": "ATuPi6fn8277fNiCoRgPTav9QG15CJoW95GEGcDmfYt8",
"proofs": [
"2wmJ7uLsx4DgM1pPA9spxB7AaKgmpNP2gk5ZU8nhyTEhQacqZZ4LzCv4vVmLS58jHnGXF9SdvDiF11ssQzPgPTgj"
],
"script": "base64:BgIKCAISABIECgIBAQsABXdjZElkAiw1V0U2SEJWc21BYmFwVG1US3BteVdtVVI2N2ZjMTZ5YkZyTmp4em1EQnRQYQALd2NkRGVjaW1hbHMAAgETdG90YWxTaGFyZUJ5VXNlcktFWQEFb3duZXIJALkJAgkAzAgCAgZzaGFyZXMJAMwIAgUFb3duZXIFA25pbAIBXwEUdG90YWxTaGFyZUJ5VXNlclJFQUQBBW93bmVyCQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMJARN0b3RhbFNoYXJlQnlVc2VyS0VZAQUFb3duZXIAAAASdG90YWxJc3N1ZWRXQ0RfS0VZAhB0b3RhbF9pc3N1ZWRfV0NEARN0b3RhbElzc3VlZFdDRF9SRUFEAAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBRJ0b3RhbElzc3VlZFdDRF9LRVkAAAAOdG90YWxTaGFyZXNLRVkCDHRvdGFsX3NoYXJlcwEPdG90YWxTaGFyZXNSRUFEAAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQ50b3RhbFNoYXJlc0tFWQAAAApwYXJhbUFfS0VZAgFBAQtwYXJhbUFfUkVBRAAJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwIBQQBkAQ9jb21wdXRlTG9nVE1ESVICCmlzc3VlZF93Y2QBQQkAZQIA6AcJAGgCCQBtBgUKaXNzdWVkX3djZAULd2NkRGVjaW1hbHMACgAAAAUFBkhBTEZVUAUBQQIBaQENZGVwb3NpdF9zaGFyZQAEA3BtdAMJAAACCQCQAwEIBQFpCHBheW1lbnRzAAEJAJEDAggFAWkIcGF5bWVudHMAAAkAAgECHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQEJaXNEZWZpbmVkAQgFA3BtdAdhc3NldElkCQACAQIWT25seSBXQVZFUyBpcyBhbGxvd2VkLgQHYWNjb3VudAkApQgBCAUBaQZjYWxsZXIEEHRvdGFsU2hhcmVCeVVzZXIJARR0b3RhbFNoYXJlQnlVc2VyUkVBRAEFB2FjY291bnQEC3RvdGFsU2hhcmVzCQEPdG90YWxTaGFyZXNSRUFEAAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBE3RvdGFsU2hhcmVCeVVzZXJLRVkBBQdhY2NvdW50CQBkAgUQdG90YWxTaGFyZUJ5VXNlcggFA3BtdAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFDnRvdGFsU2hhcmVzS0VZCQBkAgULdG90YWxTaGFyZXMIBQNwbXQGYW1vdW50BQNuaWwBaQEJZ2V0X3RtZGlyAgppc3N1ZWRfd2NkAUEJAAIBCQCsAgICCHJlc3VsdDogCQCkAwEJAQ9jb21wdXRlTG9nVE1ESVICBQppc3N1ZWRfd2NkBQFBAFHrt/Q=",
"height": 2406478,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CXtHERLTkfvkiZjruvuKZmtkHupdcGNQmqGRy9KpxSF2
Next: EeMGu2Z3a6jxPc4hPybn7Amx8ef5JgTwB77vJ4roNm1Y
Diff:
Old | New | | Differences |
---|
26 | 26 | | func k () = valueOrElse(getInteger(this, "A"), 100) |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | | - | func l (m,n) = (10 + ((log(m, 2, 10, 0, 5, HALFUP) * n) * 1000)) |
---|
| 29 | + | func l (m,n) = (1000 - (log(m, b, 10, 0, 5, HALFUP) * n)) |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(o) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "5WE6HBVsmAbapTmTKpmyWmUR67fc16ybFrNjxzmDBtPa" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = 2 |
---|
7 | 7 | | |
---|
8 | 8 | | func c (d) = makeString(["shares", d], "_") |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | func e (d) = valueOrElse(getInteger(this, c(d)), 0) |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | let f = "total_issued_WCD" |
---|
15 | 15 | | |
---|
16 | 16 | | func g () = valueOrElse(getInteger(this, f), 0) |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | let h = "total_shares" |
---|
20 | 20 | | |
---|
21 | 21 | | func i () = valueOrElse(getInteger(this, h), 0) |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | let j = "A" |
---|
25 | 25 | | |
---|
26 | 26 | | func k () = valueOrElse(getInteger(this, "A"), 100) |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | | - | func l (m,n) = (10 + ((log(m, 2, 10, 0, 5, HALFUP) * n) * 1000)) |
---|
| 29 | + | func l (m,n) = (1000 - (log(m, b, 10, 0, 5, HALFUP) * n)) |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(o) |
---|
33 | 33 | | func deposit_share () = { |
---|
34 | 34 | | let p = if ((size(o.payments) == 1)) |
---|
35 | 35 | | then o.payments[0] |
---|
36 | 36 | | else throw("Attached payment is required") |
---|
37 | 37 | | if (isDefined(p.assetId)) |
---|
38 | 38 | | then throw("Only WAVES is allowed.") |
---|
39 | 39 | | else { |
---|
40 | 40 | | let q = toString(o.caller) |
---|
41 | 41 | | let r = e(q) |
---|
42 | 42 | | let s = i() |
---|
43 | 43 | | [IntegerEntry(c(q), (r + p.amount)), IntegerEntry(h, (s + p.amount))] |
---|
44 | 44 | | } |
---|
45 | 45 | | } |
---|
46 | 46 | | |
---|
47 | 47 | | |
---|
48 | 48 | | |
---|
49 | 49 | | @Callable(o) |
---|
50 | 50 | | func get_tmdir (m,n) = throw(("result: " + toString(l(m, n)))) |
---|
51 | 51 | | |
---|
52 | 52 | | |
---|