Commit 2c873a9c authored by haydenadams's avatar haydenadams

change deadline to 10 mins

parent e1d0addd
...@@ -162,7 +162,7 @@ class AddLiquidity extends Component { ...@@ -162,7 +162,7 @@ class AddLiquidity extends Component {
const liquidityMinted = BN(totalLiquidity).multipliedBy(ethAmount.dividedBy(ethReserve)); const liquidityMinted = BN(totalLiquidity).multipliedBy(ethAmount.dividedBy(ethReserve));
let deadline; let deadline;
try { try {
deadline = await retry(() => getBlockDeadline(web3, 300)); deadline = await retry(() => getBlockDeadline(web3, 600));
} catch(e) { } catch(e) {
// TODO: Handle error. // TODO: Handle error.
return; return;
......
...@@ -109,7 +109,7 @@ class RemoveLiquidity extends Component { ...@@ -109,7 +109,7 @@ class RemoveLiquidity extends Component {
const tokenWithdrawn = tokenReserve.multipliedBy(ownership); const tokenWithdrawn = tokenReserve.multipliedBy(ownership);
let deadline; let deadline;
try { try {
deadline = await retry(() => getBlockDeadline(web3, 300)); deadline = await retry(() => getBlockDeadline(web3, 600));
} catch(e) { } catch(e) {
// TODO: Handle error. // TODO: Handle error.
return; return;
......
...@@ -389,7 +389,7 @@ class Send extends Component { ...@@ -389,7 +389,7 @@ class Send extends Component {
const { decimals: outputDecimals } = selectors().getBalance(account, outputCurrency); const { decimals: outputDecimals } = selectors().getBalance(account, outputCurrency);
let deadline; let deadline;
try { try {
deadline = await retry(() => getBlockDeadline(web3, 300)); deadline = await retry(() => getBlockDeadline(web3, 600));
} catch(e) { } catch(e) {
// TODO: Handle error. // TODO: Handle error.
return; return;
......
...@@ -385,7 +385,7 @@ class Swap extends Component { ...@@ -385,7 +385,7 @@ class Swap extends Component {
const { decimals: outputDecimals } = selectors().getBalance(account, outputCurrency); const { decimals: outputDecimals } = selectors().getBalance(account, outputCurrency);
let deadline; let deadline;
try { try {
deadline = await retry(() => getBlockDeadline(web3, 300)); deadline = await retry(() => getBlockDeadline(web3, 600));
} catch(e) { } catch(e) {
// TODO: Handle error. // TODO: Handle error.
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment