tx · AoWCoxJ26T9LSHrydyXi5iTkBKZf2zowoDdm7qNrznM7 3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9: -0.04000000 Waves 2021.08.25 00:11 [1672923] smart account 3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9 > SELF 0.00000000 Waves
{ "type": 13, "id": "AoWCoxJ26T9LSHrydyXi5iTkBKZf2zowoDdm7qNrznM7", "fee": 4000000, "feeAssetId": null, "timestamp": 1629839453286, "version": 2, "chainId": 84, "sender": "3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9", "senderPublicKey": "5fe3Hm6UB8fRqvLYhGeeNdy7rEgwpxWjdEFPgnNwSRCz", "proofs": [ "Y5Kp7xkxKHNNDyZ3Hy6M1FeLYwJNAeVXR1GunUywbYeGJxijSCr7bjRQsPoKiswB1MvGiNa36yY6LYnVopLKkAJ" ], "script": "base64:AAIFAAAAAAAAABAIAhIECgIIBBIGCgQICAgIAAAAJgAAAAAKYmFzZUZhY3RvcgAAAAAAAAAD6AAAAAAJYmFzZUluZGV4AAAjhvJvwQAAAAAAAA1ibG9ja3NQZXJZZWFyAAAAAAAACAUgAAAAAAZjb25maWcJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAA1jb25maWdBZGRyZXNzAgAAADFObyBjb25maWcgYWRkcmVzcyBjb3VsZCBiZSBmb3VuZCBpbiBkYXRhIHN0b3JhZ2UhAAAAAAVhZG1pbgkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAME5vIGFkbWluIGFkZHJlc3MgY291bGQgYmUgZm91bmQgaW4gZGF0YSBzdG9yYWdlIQAAAAALd2F2ZXRyb2xsZXIJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACCQEAAAARQGV4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AAAAAAFAAAAA25pbAkAAAIAAAABAgAAABNQb29sIGFscmVhZHkgc2V0dXAhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmc8ub7", "height": 1672923, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7MBNuUuJ5mXuH84EAeHpxCxsqYz5k4jGbgdUfxRXGXSk Next: HxE5qSpgNJmC9ARAUoGDHMaSzDK9VdvDzLk4AKh6h8Cm Diff:
Old | New | Differences | |
---|---|---|---|
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(Z) | |
127 | - | func setup (af,ag,ah,ai) = if (if (!(isDefined("config"))) | |
128 | - | then !(isDefined("admin")) | |
127 | + | func setup (af,ag,ah,ai) = if (if (!(isDefined(getString(this, "config")))) | |
128 | + | then !(isDefined(getString(this, "admin"))) | |
129 | 129 | else false) | |
130 | 130 | then { | |
131 | 131 | let aj = Issue(ah, ai, 0, 8, true) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000000000000000 | |
7 | 7 | ||
8 | 8 | let c = 525600 | |
9 | 9 | ||
10 | 10 | let d = valueOrErrorMessage(getString(this, "configAddress"), "No config address could be found in data storage!") | |
11 | 11 | ||
12 | 12 | let e = valueOrErrorMessage(getString(addressFromStringValue(d), "admin"), "No admin address could be found in data storage!") | |
13 | 13 | ||
14 | 14 | let f = valueOrErrorMessage(getString(addressFromStringValue(d), "wavetroller"), "No wavetroller address could be found in data storage!") | |
15 | 15 | ||
16 | 16 | let g = valueOrErrorMessage(getString(this, "assetId"), "No assetId could be found in data storage!") | |
17 | 17 | ||
18 | 18 | let h = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Decimals")), (("No key " + (g + "_Decimals")) + " was found")) | |
19 | 19 | ||
20 | 20 | let i = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Multiplier")), (("No key " + (g + "_Multiplier")) + " was found")) | |
21 | 21 | ||
22 | 22 | let j = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Kink")), (("No key " + (g + "_Kink")) + " was found")) | |
23 | 23 | ||
24 | 24 | let k = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_JumpMultiplier")), (("No key " + (g + "_JumpMultiplier")) + " was found")) | |
25 | 25 | ||
26 | 26 | let l = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_BaseRate")), (("No key " + (g + "_BaseRate")) + " was found")) | |
27 | 27 | ||
28 | 28 | let m = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_ReserveFactor")), (("No key " + (g + "_ReserveFactor")) + " was found")) | |
29 | 29 | ||
30 | 30 | let n = valueOrErrorMessage(getInteger(this, "totalBorrow"), "No key totalBorrow was found") | |
31 | 31 | ||
32 | 32 | let o = valueOrErrorMessage(getInteger(this, "totalSupply"), "No key totalSupply was found") | |
33 | 33 | ||
34 | 34 | let p = valueOrErrorMessage(getInteger(this, "totalReserve"), "No key totalReserve was found") | |
35 | 35 | ||
36 | 36 | let q = valueOrErrorMessage(getInteger(this, "dTokenSupply"), "No key dTokenSupply was found") | |
37 | 37 | ||
38 | 38 | let r = valueOrErrorMessage(getInteger(this, "dTokenDecimals"), "No key dTokenDecimals was found") | |
39 | 39 | ||
40 | 40 | let s = valueOrErrorMessage(getString(this, "dTokenId"), "No key dTokenId was found") | |
41 | 41 | ||
42 | 42 | let t = valueOrErrorMessage(getInteger(this, "storedHeight"), "No key storedHeight was found") | |
43 | 43 | ||
44 | 44 | let u = valueOrErrorMessage(getInteger(this, "storedIndex"), "No key storedIndex was found") | |
45 | 45 | ||
46 | 46 | func v (w) = if ((addressFromStringValue(e) == w)) | |
47 | 47 | then true | |
48 | 48 | else false | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (w) = if ((addressFromStringValue(f) == w)) | |
52 | 52 | then true | |
53 | 53 | else false | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func y (z,A) = StringEntry(z, A) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func B (z,C) = IntegerEntry(z, C) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func D (E) = valueOrElse(getInteger(this, (E + "_tokenBalance")), 0) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let F = fraction(n, a, o) | |
66 | 66 | ||
67 | 67 | let G = { | |
68 | 68 | let H = [F, j] | |
69 | 69 | let I = min(H) | |
70 | 70 | let J = [0, (F - j)] | |
71 | 71 | let K = max(J) | |
72 | 72 | ((fraction(i, I, a) + fraction(k, K, a)) + l) | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | let L = fraction(fraction(G, F, a), (a - m), a) | |
76 | 76 | ||
77 | 77 | let M = fraction(G, b, (c * a)) | |
78 | 78 | ||
79 | 79 | let N = (height - t) | |
80 | 80 | ||
81 | 81 | let O = fraction(u, (b + (M * N)), b, CEILING) | |
82 | 82 | ||
83 | 83 | let P = fraction(n, O, u) | |
84 | 84 | ||
85 | 85 | let Q = fraction(n, (M * N), b) | |
86 | 86 | ||
87 | 87 | let R = (o + fraction((a - m), Q, a)) | |
88 | 88 | ||
89 | 89 | let S = (p + fraction(m, Q, a)) | |
90 | 90 | ||
91 | 91 | let T = if ((q > 0)) | |
92 | 92 | then { | |
93 | 93 | let U = ((18 - 8) + h) | |
94 | 94 | if ((10 > U)) | |
95 | 95 | then fraction(R, (1 * pow(10, 2, U, 1, 18, CEILING)), q) | |
96 | 96 | else fraction(R, (1 * pow(10, 2, U, 2, 18, CEILING)), q) | |
97 | 97 | } | |
98 | 98 | else { | |
99 | 99 | let V = (h + 6) | |
100 | 100 | if ((10 > V)) | |
101 | 101 | then fraction(2, (1 * pow(10, 2, V, 1, 18, CEILING)), 1) | |
102 | 102 | else fraction(2, (1 * pow(10, 2, V, 2, 18, CEILING)), 1) | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | func W (X) = { | |
106 | 106 | let U = ((18 - 8) + h) | |
107 | 107 | let Y = if ((10 > U)) | |
108 | 108 | then 1 | |
109 | 109 | else 2 | |
110 | 110 | fraction(X, (1 * pow(10, 2, U, Y, 18, CEILING)), T) | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(Z) | |
115 | 115 | func deposit (aa,ab) = if (x(Z.caller)) | |
116 | 116 | then { | |
117 | 117 | let ac = W(Z.payments[0].amount) | |
118 | 118 | let ad = (q + ac) | |
119 | 119 | let ae = (D(aa) + ac) | |
120 | 120 | [Reissue(fromBase58String(s), ac, true), B("dTokenSupply", ad), B((aa + "_tokenBalance"), ae), BooleanEntry((aa + "_useAsCollateral"), ab), B("totalBorrow", P), B("totalSupply", (R + Z.payments[0].amount)), B("totalReserve", S), B("storedIndex", O), B("storedHeight", height), ScriptTransfer(Z.caller, ac, fromBase58String(s))] | |
121 | 121 | } | |
122 | 122 | else throw("Address does not match with wavetroller address!") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(Z) | |
127 | - | func setup (af,ag,ah,ai) = if (if (!(isDefined("config"))) | |
128 | - | then !(isDefined("admin")) | |
127 | + | func setup (af,ag,ah,ai) = if (if (!(isDefined(getString(this, "config")))) | |
128 | + | then !(isDefined(getString(this, "admin"))) | |
129 | 129 | else false) | |
130 | 130 | then { | |
131 | 131 | let aj = Issue(ah, ai, 0, 8, true) | |
132 | 132 | let ak = calculateAssetId(aj) | |
133 | 133 | [y("assetId", af), y("configAddress", ag), IntegerEntry("totalBorrow", 0), IntegerEntry("totalSupply", 0), IntegerEntry("totalReserve", 0), IntegerEntry("storedIndex", b), IntegerEntry("storedHeight", height), y("dTokenName", ah), y("dTokenId", toBase58String(ak)), IntegerEntry("dTokenDecimals", 8), IntegerEntry("dTokenSupply", 0)] | |
134 | 134 | } | |
135 | 135 | else throw("Pool already setup!") | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Verifier(al) | |
139 | 139 | func am () = sigVerify(al.bodyBytes, al.proofs[0], al.senderPublicKey) | |
140 | 140 |
github/deemru/w8io/169f3d6 33.42 ms ◑