public async Task <bool> ExchangeToken( string tokenExchangecontractAddress, string exchangeMarketAddress, string exchangerAccountAddress, string sourceTokenContractAddress, string targetTokenContractAddress, decimal exchangeRaptePercentage, decimal TokenAmount ) { ExchangeTokenService exchangeTokenService = new ExchangeTokenService( this.HTTPRPCEndpoint, this.APPAccount ); return(await exchangeTokenService.ExchangeTokens( tokenExchangecontractAddress, exchangeMarketAddress, exchangerAccountAddress, sourceTokenContractAddress, targetTokenContractAddress, new BigInteger(exchangeRaptePercentage), new BigInteger(TokenAmount))); }
public async Task <ActionResult <string> > DeployExchangeToken() { ExchangeTokenService exchangeTokenService = new ExchangeTokenService( this.HTTPRPCEndpoint, this.APPAccount); return(await exchangeTokenService.DeployExchangeTokenContract()); }