tx · 2oEYtpV1GB2GYFoYeaSTyv8sxojKkPfLjD7mcVLZoCGW

3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA:  -0.01400000 Waves

2022.03.11 17:19 [1959397] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves

{ "type": 13, "id": "2oEYtpV1GB2GYFoYeaSTyv8sxojKkPfLjD7mcVLZoCGW", "fee": 1400000, "feeAssetId": null, "timestamp": 1647008339748, "version": 1, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "2UDNzyzUAX9TQLVFe7NLBpPxHzrnz9HFn96XNktgJsZsLbhrCi89ucWU9DZ3GVg3udhLaWeEkyEc6rQ1YkJUeaJo" ], "script": "base64:AAIFAAAAAAAAABsIAhIJCgcIAQEBAQEIEgMKAQESABIDCgEIEgAAAAAkAAAAAANTRVACAAAAAl9fAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAARa2V5RmFjdG9yeUFkZHJlc3MAAAAAAgAAABwlcyVzX19jb25maWdfX2ZhY3RvcnlBZGRyZXNzAAAAABhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAAAAAAAAAAAAEAAAAAGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAAAAAAAAAAAAIAAAAAFElkeEZhY3RvcnlDZmdJZG9EYXBwAAAAAAAAAAADAAAAABVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAAAAAAAAAAAAQAAAAAGUlkeEZh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WJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXlmRwea", "chainId": 84, "height": 1959397, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GjY1aZ5yXx65dW2UX9mSs8s9ucQa8RiJxx6yMSV9h5tC Next: CzxjTAPjUHpug2GKuFdA3ZrRWEoXQ7ZGouWJCXNaLYoC Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
77
88
99 func keyFactoryAddress () = "%s%s__config__factoryAddress"
1010
1111
1212 let IdxFactoryCfgStakingDapp = 1
1313
1414 let IdxFactoryCfgBoostingDapp = 2
1515
1616 let IdxFactoryCfgIdoDapp = 3
1717
1818 let IdxFactoryCfgTeamDapp = 4
1919
2020 let IdxFactoryCfgEmissionDapp = 5
2121
2222 let IdxFactoryCfgRestDapp = 6
2323
2424 let IdxFactoryCfgSlippageDapp = 7
2525
2626 let IdxFactoryCfgGwxRewardDapp = 10
2727
2828 func keyFactoryCfg () = "%s__factoryConfig"
2929
3030
3131 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
3232
3333
3434 func keyFactoryLpList () = "%s__lpTokensList"
3535
3636
3737 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
3838
3939
4040 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
4141
4242
4343 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
4444
4545
4646 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
4747
4848
4949 func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP)
5050
5151
5252 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
5353
5454
5555 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
5656
5757
5858 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
5959
6060
6161 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
6262
6363
6464 func keyConfig () = "%s__config"
6565
6666
6767 func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
6868
6969
7070 func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP)
7171
7272
7373 func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
7474
7575
7676 func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
7777
7878
7979 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
8080
8181
8282 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
8383
8484
8585 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
8686
8787
8888 func keyManagerPublicKey () = "%s__managerPublicKey"
8989
9090
9191 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
9292
9393
9494 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
9595 case s: String =>
9696 fromBase58String(s)
9797 case _: Unit =>
9898 unit
9999 case _ =>
100100 throw("Match error")
101101 }
102102
103103
104104 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
105105 case s: String =>
106106 fromBase58String(s)
107107 case _: Unit =>
108108 unit
109109 case _ =>
110110 throw("Match error")
111111 }
112112
113113
114114 func mustManager (i) = {
115115 let pd = throw("Permission denied")
116116 match managerPublicKeyOrUnit() {
117117 case pk: ByteVector =>
118118 if ((i.callerPublicKey == pk))
119119 then true
120120 else pd
121121 case _: Unit =>
122122 if ((i.caller == this))
123123 then true
124124 else pd
125125 case _ =>
126126 throw("Match error")
127127 }
128128 }
129129
130130
131131 @Callable(i)
132132 func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp,wxAssetIdStr) = {
133133 let checkCaller = mustManager(i)
134134 if ((checkCaller == checkCaller))
135135 then [IntegerEntry(keyRatePerBlockMaxStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlockMax), IntegerEntry(keyRatePerBlockMaxCurrent(), ratePerBlockMax), IntegerEntry(keyRatePerBlockStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlock), IntegerEntry(keyRatePerBlockCurrent(), ratePerBlock), IntegerEntry(keyEmissionStartBlock(), emissionStartBlock), IntegerEntry(keyEmissionDurationInBlocks(), emissionDuration), IntegerEntry(keyEmissionEndBlock(), (emissionStartBlock + emissionDuration)), StringEntry(keyFactoryAddress(), factoryAddress), StringEntry(keyConfig(), ("%s__" + wxAssetIdStr))]
136136 else throw("Strict value is not equal to itself.")
137137 }
138138
139139
140140
141141 @Callable(i)
142142 func emit (amount) = if ((0 >= amount))
143143 then $Tuple2(nil, nil)
144144 else {
145145 let factoryContract = readFactoryAddressOrFail()
146146 let factoryCfg = readFactoryCfgOrFail(factoryContract)
147147 let stakingContract = getStakingAddressOrFail(factoryCfg)
148148 let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
149149 let caller = i.caller
150150 if (if ((caller != stakingContract))
151151 then (caller != gwxRewardsContract)
152152 else false)
153153 then throw("permissions denied")
154154 else {
155155 let wxAssetIdStr = split(getStringOrFail(this, keyConfig()), SEP)[1]
156156 let wxAssetId = fromBase58String(wxAssetIdStr)
157157 $Tuple2([ScriptTransfer(caller, amount, wxAssetId)], [wxAssetId])
158158 }
159159 }
160160
161161
162162
163163 @Callable(i)
164164 func burn () = {
165165 let factoryContract = readFactoryAddressOrFail()
166166 let factoryCfg = readFactoryCfgOrFail(factoryContract)
167167 let boostingContract = getBoostingAddressOrFail(factoryCfg)
168168 if ((size(i.payments) != 1))
169169 then throw("exact one payment is allowed")
170170 else {
171171 let pmt = i.payments[0]
172172 let assetId = value(pmt.assetId)
173173 let pmtAmount = pmt.amount
174174 let wxAssetId = fromBase58String(split(getStringOrFail(this, keyConfig()), SEP)[1])
175175 if ((assetId != wxAssetId))
176176 then throw("invalid wxAssetId is passed")
177177 else if ((i.caller != boostingContract))
178178 then throw("permissions denied")
179179 else [Burn(assetId, pmtAmount), StringEntry(("%s%s%s__history__burn__" + toBase58String(i.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(pmtAmount)], SEP))]
180180 }
181181 }
182182
183183
184184
185185 @Callable(i)
186186 func setManager (pendingManagerPublicKey) = {
187187 let checkCaller = mustManager(i)
188188 if ((checkCaller == checkCaller))
189189 then {
190190 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
191191 if ((checkManagerPublicKey == checkManagerPublicKey))
192192 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
193193 else throw("Strict value is not equal to itself.")
194194 }
195195 else throw("Strict value is not equal to itself.")
196196 }
197197
198198
199199
200200 @Callable(i)
201201 func confirmManager () = {
202202 let pm = pendingManagerPublicKeyOrUnit()
203203 let hasPM = if (isDefined(pm))
204204 then true
205205 else throw("No pending manager")
206206 if ((hasPM == hasPM))
207207 then {
208208 let checkPM = if ((i.callerPublicKey == value(pm)))
209209 then true
210210 else throw("You are not pending manager")
211211 if ((checkPM == checkPM))
212212 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
213213 else throw("Strict value is not equal to itself.")
214214 }
215215 else throw("Strict value is not equal to itself.")
216216 }
217217
218218
219219 @Verifier(tx)
220220 func verify () = {
221221 let targetPublicKey = match managerPublicKeyOrUnit() {
222222 case pk: ByteVector =>
223223 pk
224224 case _: Unit =>
225225 tx.senderPublicKey
226226 case _ =>
227227 throw("Match error")
228228 }
229229 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
230230 }
231231

github/deemru/w8io/026f985 
31.35 ms