Hello,

Sign up to join our community!

Welcome Back,

Please login to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

pso8400755842 activity

pso8400755842 commented on The way I understand this is if the contract owner changes this to a lower value before the user claims the rewords he will miss on a possibility of claiming rewords using a higher value per_block. Is this correct?

No, there are no missed rewards. If the generation rate is changed, there are lower or higher rewards minted, but they are claimed using a position with a specific rps that takes into account the moment of the last claim, and which afterwards resets to a new position after claiming (goes to the current rps of the farm).

pso8400755842 commented on Hello, I'm updating my SCs to prevent using heap memory, but I'm out of ideas could someone help me ? I want to check inside the smartcontract if caller addresses are whitelisted like this in the init function self.allowlist().insert(ManagedAddress::from_address(&Address::from(H256::from(hex!("1ff... Read more

I don't know if this should be your implementation, but yes, this should do it. let address: [u8; 32] = hex!("1ff238d3d35e0f942b384aaaa111xxxxxxxxxxxxxxxxxxxxxx"); self.allowlist().insert(ManagedAddress::new_from_bytes(&address));