You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Teleporter service just logs when a tokenAddress is not supported.
Refer to service.ts (Teleporter):
try{constreceivingChainTokenAddr=this._getSupportedAssetBySymbol(sourceChainTokenAddr,sourceChainId.toNumber(),chainId,this.state.supportedChains)const[isTokenSupported,,,,,]=awaitthis.state.Teleportation.supportedTokens(sourceChainTokenAddr)if(!isTokenSupported){thrownewError(`Token '${sourceChainTokenAddr}' not supported originating from chain '${sourceChainId}' with amount '${amount}'!`)}else{disbursement=[
...disbursement,{token: receivingChainTokenAddr,// token mapping for correct routing as addresses different on every networkamount: amount.toString(),addr: emitter,depositId: depositId.toNumber(),sourceChainId: sourceChainId.toString(),},]this.logger.info(`Found a new deposit - sourceChainId: ${sourceChainId.toString()} - depositId: ${depositId.toNumber()} - amount: ${amount.toString()} - emitter: ${emitter} - token/native: ${sourceChainTokenAddr}`)}}catch(e){this.logger.error(e.message)// TODO: Add recovery mechanism// TODO: Save somewhere to recover(!) or generally fail (do once db teleporter is merged)// TODO: for both when getSupportedAssetBySymbol fails or when onchain support is missing}
Desired Behavior
Assets are explictly supported or not supported in the Teleporter contract. The Teleporter service owns the routes between networks and maps token addresses to each other for every network - we may want to save failed disbursements for this kind of configuration mistake and possibly add a recovery mechanism. Same applies to missing on-chain token support to not loose the information and have an inconsistent state for already disbursed assets / to not block other disbursements.
The text was updated successfully, but these errors were encountered:
related to #959
Issue Type
Current Behavior
Teleporter service just logs when a tokenAddress is not supported.
Refer to
service.ts
(Teleporter):Desired Behavior
Assets are explictly supported or not supported in the Teleporter contract. The Teleporter service owns the routes between networks and maps token addresses to each other for every network - we may want to save failed disbursements for this kind of configuration mistake and possibly add a recovery mechanism. Same applies to missing on-chain token support to not loose the information and have an inconsistent state for already disbursed assets / to not block other disbursements.
The text was updated successfully, but these errors were encountered: