Skip to content

Commit

Permalink
refactor(staking): fast tx by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jul 27, 2021
1 parent 021ed35 commit 839585d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/staking/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class StakingPool {
async putStake(
/** stake amount */
stake: utils.BigNumber | number,
transactionSpeed = TransactionSpeed.BASE
transactionSpeed = TransactionSpeed.FAST
): Promise<void> {
if (typeof stake === "number") {
stake = new BigNumber(stake);
Expand Down Expand Up @@ -181,7 +181,7 @@ export class StakingPool {
* @description Stops accumulating of the reward and prepars stake to withdraw after withdraw delay.
* Withdraw request unavailable until minimum staking period ends
*/
async requestWithdraw(transactionSpeed = TransactionSpeed.BASE): Promise<void> {
async requestWithdraw(transactionSpeed = TransactionSpeed.FAST): Promise<void> {
await (await this.pool.requestWithdraw({
gasPrice: (await this.pool.provider.getGasPrice()).mul(transactionSpeed).div(TransactionSpeed.BASE)
})).wait();
Expand All @@ -208,7 +208,7 @@ export class StakingPool {
* @description pays back stake with accumulated reward. Withdrawn unavailable until withdrawn delay ends
* @emits StakingPool.StakeWithdrawn
*/
async withdraw(transactionSpeed = TransactionSpeed.BASE): Promise<void> {
async withdraw(transactionSpeed = TransactionSpeed.FAST): Promise<void> {
await (await this.pool.withdraw({
gasPrice: (await this.pool.provider.getGasPrice()).mul(transactionSpeed).div(TransactionSpeed.BASE)
})).wait();
Expand Down

0 comments on commit 839585d

Please sign in to comment.