Skip to content

claim bounty fails #2

@23bps

Description

@23bps

I've been first to compound twice, and it looks like i've received nothing for the claim bounties.

added 1 busd into the pool at this tx

image

then

claimed first time at hash

image

second time at hash

image

looking at the compound function:

        // function to compound for pool
        bool _canCompound = canCompound();
        if(_canCompound){
            uint256 balanceBefore = posi.balanceOf(address(this));
            posiStakingManager.deposit(POSI_SINGLE_PID, 0, address(this));
            uint256 amountCollected = posi.balanceOf(address(this)).sub(balanceBefore);
            uint256 rewardForCaller = amountCollected.mul(percentFeeForCompounding).div(100);
            uint256 rewardForPool = amountCollected.sub(rewardForCaller);
            // stake to POSI pool
            posiStakingManager.deposit(POSI_SINGLE_PID, rewardForPool, address(this));
            posi.transfer(msg.sender, rewardForCaller);
            lastPoolReward = lastPoolReward.add(rewardForPool);
            emit Compound(msg.sender, rewardForPool);
        }
    }

we call the compound function, in theory i should receive some posi token via the posi.transfer(msg.sender, rewardForCaller);.

But it looks like i don't. If thats the case then does that mean the emit Compound(msg.sender, rewardForPool); is failing too and the pools aren't actually compounding, and there aren't any rewards?

@JustInPosition

@DesertEaglePosition

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions