Yes. At is dependable to the rps value of your position, which then distributes the generated rewards. It is not impacted by the generation rate, but rather by the amount of existing rewards.
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 Ok. So, staking rewards and its distribution defined by SC and there isn't any points in the source code, am i right?
Don’t quite understand what you mean by points in the source code. ????
pso8400755842 commented on Where is new_farm_context defined please?
You can find it in the common modules. (along with all other shared functionalities) https://github.com/ElrondNetwork/sc-dex-rs/blob/main/common/modules/farm/contexts/src/generic.rs#L80
pso8400755842 commented on Hi. Can somebody point me where exactly in the source code can i find a function with rewards algorithm counting for staking?
A bit more complex computation algorithm. But you have here the entire flow. (in this case we have the DEX farm contract) https://github.com/ElrondNetwork/sc-dex-rs/blob/main/dex/farm/src/lib.rs#L172
pso8400755842 commented on Does elrond use custom EVM to build smart contracts or it uses Ethereum One?
https://docs.elrond.com/technology/the-elrond-wasm-vm/
pso8400755842 commented on Yeah now it's adding the 0 in front of it. But I'm trying to figure out why I need it. Maybe for someone who will make the transfer, it will not work? if there's no 'odd number' ?
I mean odd number of characters in the hex encoding. You can have any number as the nonce. But when you represent it in hex, you need an even number of characters for the hex representation.
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));