Currently, I deploy a contract via a Factory contract for staking. Think of it like UniSwap pools without swapping, short term contracts that I want to destroy after their use is done. But I also want to reimburse the original stakers and distribute the rewards post staking. What is the logic I should be using here? The one idea I had was use a specific reimburse function - and then destroy the contract. Any better ideas?


1 Answer 1


In general it's much safer to let the users pull the rewards (and their stakes), instead of you pushing them.

I don't also see much point in destroying the contract. Just leave it there and users can come and claim their assets whenever they want - maybe tomorrow or maybe in 10 years.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.