Gas Optimization Tips
Minimize on-chain dataUse librariesUse ERC1167Turn on the Solidity optimizerUse eventsUse literal instead of computed valuesAvoid to copy arrays in memoryAvoid for-loop over dynamic rangesOptimize order of variable declarationUse eth-gas-reporter
EIP-712: Quick Intro and Use case
https://eips.ethereum.org/EIPS/eip-712 Abstract This is a standard for hashing and signing of typed structured data as opposed to just bytestrings. It includes a theoretical framework for correctness of encoding functions, specification of structured data similar to and compatible with Solidity structs, safe hashing algorithm for instances of those structures, safe inclusion of those instances in the set of signable messages, an extensible mechanism for domain separation, new RPC call eth_sig...
How Tornado Cash works
Tornado Cash is a coin mixer that you can use to anonymize your Ethereum transactions. Because of the logic of the blockchain, every transaction is public. If you have some ETH on your account, you cannot transfer it anonymously, because anybody can follow your transaction history on the blockchain. Coin mixers, like Tornado Cash, can solve this privacy problem by breaking the on-chain link between the source and the destination address by using ZKP.Deposit:Users deposit the same amount of ET...
Blockchain Developer
Gas Optimization Tips
Minimize on-chain dataUse librariesUse ERC1167Turn on the Solidity optimizerUse eventsUse literal instead of computed valuesAvoid to copy arrays in memoryAvoid for-loop over dynamic rangesOptimize order of variable declarationUse eth-gas-reporter
EIP-712: Quick Intro and Use case
https://eips.ethereum.org/EIPS/eip-712 Abstract This is a standard for hashing and signing of typed structured data as opposed to just bytestrings. It includes a theoretical framework for correctness of encoding functions, specification of structured data similar to and compatible with Solidity structs, safe hashing algorithm for instances of those structures, safe inclusion of those instances in the set of signable messages, an extensible mechanism for domain separation, new RPC call eth_sig...
How Tornado Cash works
Tornado Cash is a coin mixer that you can use to anonymize your Ethereum transactions. Because of the logic of the blockchain, every transaction is public. If you have some ETH on your account, you cannot transfer it anonymously, because anybody can follow your transaction history on the blockchain. Coin mixers, like Tornado Cash, can solve this privacy problem by breaking the on-chain link between the source and the destination address by using ZKP.Deposit:Users deposit the same amount of ET...
Share Dialog
Share Dialog
Blockchain Developer

Subscribe to Hicss

Subscribe to Hicss
<100 subscribers
<100 subscribers
AToken uses a unit increase model, meaning a holder’s balance of aTokens will increment up as the asset pool grows from interest payments made by borrowers. For example, if you deposit 1 ETH in the Aave ETH pool you’ll be minted 1 aETH token. As the pool accumulates interest your aETH token balance will increment up so that your aETH token balance is greater than 1, reflecting your claim on a growing pool of assets. When an aETH token holder goes to redeem the underlying ETH their aETH will be redeemed 1:1 with the underlying ETH.
Suppose the above holder has held their aETH token for a year and they are looking to redeem their aETH balance for the underlying ETH. They notice that their aETH balance is now 1.05. This balance entitles them to 1.05 ETH of the existing ETH pool. If the aETH holder does redeem their aETH they will have earned .05 ETH in interest over that year, or 5% APY.
Multiply it by a factor(index) for each transfer so that it is equal to add more token for holders

aTokens
https://docs.aave.com/developers/v/2.0/the-core-protocol/atokens
scaledBalanceOf()

AToken uses a unit increase model, meaning a holder’s balance of aTokens will increment up as the asset pool grows from interest payments made by borrowers. For example, if you deposit 1 ETH in the Aave ETH pool you’ll be minted 1 aETH token. As the pool accumulates interest your aETH token balance will increment up so that your aETH token balance is greater than 1, reflecting your claim on a growing pool of assets. When an aETH token holder goes to redeem the underlying ETH their aETH will be redeemed 1:1 with the underlying ETH.
Suppose the above holder has held their aETH token for a year and they are looking to redeem their aETH balance for the underlying ETH. They notice that their aETH balance is now 1.05. This balance entitles them to 1.05 ETH of the existing ETH pool. If the aETH holder does redeem their aETH they will have earned .05 ETH in interest over that year, or 5% APY.
Multiply it by a factor(index) for each transfer so that it is equal to add more token for holders

aTokens
https://docs.aave.com/developers/v/2.0/the-core-protocol/atokens
scaledBalanceOf()

No activity yet