Skip to main content

Claim

User - claim scrt

An image

When ongoing_window gets matured user get the option to claim SCRT or SSCRT. For claiming user call Claim which triggers try_claim function.

An image

An image

try_claim function first gets the claimable amount from User_Claimable data structure and then checks the users choice for SSCRT and SCRT. If user wants SSCRT then it send a message to deposit SSCRT token in the user wallet from SSCRT contract(another snip-20 contract which stores SSCRT tokens) otherwise send a message to send SCRT from contract to user wallet.