This is demo staking contract for BSC.

version
chain_id
token_addr
staking_addr
sender_addr
wallet_addr


After deleting not the last deposit in the list, the last one takes its place. Therefore, when loading the list, it must be sorted by the time the deposit was created (startTime). Deleting a deposit is performed by its index in the list, therefore, for complete confidence in the correctness of the deletion, you can pass the time of creation of the deposit in the second parameter of the function call, and if it does not match, the item will not be deleted.

owner only

owner only

© 1