snt-gas-relay/gas-relayer/plugins/token-utils.js

15 lines
330 B
JavaScript

class TokenUtils {
constructor(tokenConfig){
this.name = tokenConfig.name || "";
this.symbol = tokenConfig.symbol || "";
this.minRelayFactor = tokenConfig.minRelayFactor || 1;
}
getFactor(){
// TODO get price from somewhere
return 100000;
}
}
module.exports = TokenUtils;