hi everyone, seems like i am a little bit stuck...

how is it possible to implement a claim function, where investors can claim ETH which is located within the contract (rewards, which are generated by a buy and sell tax)?
anybody eager to check the contract?

Aug 16, 2021, 10:08 AM
i have a contract, which is based on claiming another coin (except eth/weth), which uses the function

_uniswapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens
but this function does not allow claiming ETH/WETH as the 'claim address' (WETH) will be the same as the input

path[0] = _uniswapRouter.WETH();
please, anybody? probably the solution is rather simple, but as I said, I am stuck somehow
yeah that's true, but unlike mrat and other clones your reward accumulates and you don't need to claim on fixed dates as otherwise the rewards will be lower.. every investor has its 'own' reward pool, which can be claimed anytime without loosing rewards
so the main question is, which function is the best to claim the ETH rewards stored within the contract?
Aug 16, 2021, 11:12 AM
Doesnt Printrrrrrr have a function like this? Correct me If I am wrong
Aug 16, 2021, 12:10 PM
yeah, i implemented the same function, but printr still uses bnb to swap to either a farmed token or BUSD, which both are not the same as BNB
i need a direkt withdraw function for the claimable ETH on the contract :/
is it possible to alter the path (including an in-between-swap) so it will be like this:

eth/weth -> USDT -> WETH -> claiming wallet

If it is possible, how to implement?
Anyone? Would be highly appreciated
Aug 16, 2021, 2:25 PM

© 2024 Draquery.com All rights reserved.