Object.fromEntries( list.map((item) => [item.currency, { state: !!item.state, exchangeFee: !!item.exchangeFee }]), );