axell2017 / bounties

0 stars 0 forks source link

Quickswap Staking() #3

Open axell2017 opened 3 years ago

axell2017 commented 3 years ago

Looking to stake into a quickswap rewards contract using the stake() function.

What am I doing wrong with the code below?

If not, what is the code required for the other function stakeWithPermit()?

from vyper.interfaces import ERC20

rewardAddy: constant(address) = 0xF42405d54c8F443126Ac06A47b5023BbfC7a85D3
lpTokenAddress: constant(address) = 0x66ff795535cf162d29f6b15ed546a3e148eff0fb

interface UniswapV2Pair:
    def balanceOf(caller_address: address) -> uint256: view

interface StakingRewards:
    def stake(amount: uint256) -> uint256: nonpayable

@external
def stakePair() -> uint256:
    pairBal: uint256 = UniswapV2Pair(tokenPair).balanceOf(self)
    ERC20(tokenPair).approve(rewardAddy, pairBal)
    return(StakingRewards(rewardAddy).stake(pairBal))
gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.03 BNB (13.58 USD @ $452.59/BNB) attached to it.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Workers have applied to start work.

These users each claimed they can complete the work by 265 years, 3 months from now. Please review their action plans below:

1) arobilli has applied to start work _(Funders only: approve worker | reject worker)_.

https://metamask.app.link/send/0xeD3Ff9184533143807Ac78956F7D2133da240641@1?value=5e19 2) dodi230 has applied to start work _(Funders only: approve worker | reject worker)_.

Thanks for giving us such a great opportunity. I am supporting it. always success for the development team to the moon

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.03 BNB (14.9 USD @ $496.54/BNB) has been submitted by:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.1 BNB (34.15 USD @ $344.27/BNB) has been submitted by:

  1. @pranata991

@axell2017 please take a look at the submitted work: