ladders!
This commit is contained in:
@@ -129,3 +129,8 @@ export function pairPrice(baseToken, quoteToken, price, decimals=null) {
|
||||
|
||||
export const sleep = ms => new Promise(r => setTimeout(r, ms))
|
||||
|
||||
export function builderDefaults(builder, defaults) {
|
||||
for (const k in defaults)
|
||||
if (builder[k] === undefined)
|
||||
builder[k] = defaults[k] instanceof Function ? defaults[k]() : defaults[k]
|
||||
}
|
||||
Reference in New Issue
Block a user