Add comments
This commit is contained in:
parent
69c80e3d5c
commit
1f9ab08228
@ -125,6 +125,7 @@ function extractConfig (fields, config, client) {
|
|||||||
const field = fields.find(({ name }) => name === key)
|
const field = fields.find(({ name }) => name === key)
|
||||||
|
|
||||||
// filter server config which isn't specified as wallet fields
|
// filter server config which isn't specified as wallet fields
|
||||||
|
// (we allow autowithdraw members to pass validation)
|
||||||
if (client && key === 'id') return acc
|
if (client && key === 'id') return acc
|
||||||
|
|
||||||
// field might not exist because config.enabled doesn't map to a wallet field
|
// field might not exist because config.enabled doesn't map to a wallet field
|
||||||
@ -198,7 +199,7 @@ function useConfig (wallet) {
|
|||||||
if (transformedConfig) {
|
if (transformedConfig) {
|
||||||
newClientConfig = Object.assign(newClientConfig, transformedConfig)
|
newClientConfig = Object.assign(newClientConfig, transformedConfig)
|
||||||
}
|
}
|
||||||
|
// these are stored on the server
|
||||||
delete newClientConfig.autoWithdrawMaxFeePercent
|
delete newClientConfig.autoWithdrawMaxFeePercent
|
||||||
delete newClientConfig.autoWithdrawMaxFeeTotal
|
delete newClientConfig.autoWithdrawMaxFeeTotal
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user