Skip to content

Commit ca9302b

Browse files
committed
amp from factory
1 parent 43175f4 commit ca9302b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ride/lp_stable.ride

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func aa() = {"%s__amountAsset"}
114114
func pa() = {"%s__priceAsset"}
115115
# keyAmplificator
116116
func amp() = {"%s__amp"}
117+
func fcAmp() = {["%s%s", "amp", this.toString()].makeString(SEP)}
117118
func keyAmpHistory(heightBlocks: Int) = "%s%d__amp__" + heightBlocks.toString()
118119
func keyChangeAmpLastCall() = "%s__changeAmpLastCall"
119120

@@ -197,7 +198,8 @@ func isAddressWhitelisted(address: Address) = {
197198
fca.getBoolean(keyAddressWhitelisted(address)).valueOrElse(false)
198199
}
199200

200-
let A = strf(this, amp())
201+
let defaultAmp = "50"
202+
let A = fca.getString(fcAmp()).valueOrElse(defaultAmp)
201203

202204
# isGlobalShutdown
203205
# check that global shutdown is take place

0 commit comments

Comments
 (0)