exchange/bitfinexv2.js
/**
     * Called when we get a change to the wallet
     * @param wallet
     */
Called when we get a change to the wallet
@param wallet
Called when we get a change to the wallet @param wallet
onWalletUpdate(wallet) {
        const mapped = wallet.map(item => item.toJS()).filter(item => item.type === 'funding');
        mapped.forEach((item) => {
            this.state.wallet = this.state.wallet.filter(w => w.currency !== item.currency);
            this.state.wallet.push(item);
        });
    }
onWalletUpdate ( wallet ) { const mapped = wallet . map ( item => item . toJS ( ) ) . filter ( item => item . type === 'funding' ) ; mapped . forEach ( ( item ) => { this . state . wallet = this . state . wallet . filter ( w => w . currency !== item . currency ) ; this . state . wallet . push ( item ) ; } ) ; }
Called when we get a change to the wallet
 @param wallet
Called when we get a change to the wallet @param wallet