-
## gas optimization
### G01: PREFIX INCREMENT SAVE MORE GAS
#### problem
prefix increment ++i is more cheaper than postfix i++
#### prof
'AxelarGateway.sol', 206, ' for (uint256 i = 0; i < symb…
-
1. 我想在tt链上发送一个ERC20的智能合约,按照[官方教程](https://developers-cn.thundercore.com/docs/erc20-smart-contract/),truffle unbox thundercore/thunder-box这一个命令报错,我猜测是在中国大陆的网络环境的问题,请问有什么好的解决办法或者是能帮助我在tt链上发行一个erc20的合约吗,…
-
# Lines of code
https://github.com/reserve-protocol/protocol/blob/c4ec2473bbcb4831d62af55d275368e73e16b984/contracts/p1/Distributor.sol#L87-L133
https://github.com/reserve-protocol/protocol/blob/c4ec…
-
**🧐 Motivation**
There are multiple benefits of getting an image directly from a smart contract of an ERC20 token.
* `Transparency and Decentralisation` : By fetching an image from a smart contrac…
-
- [X] I understand that token listing is not required to use the Uniswap Interface with a token.
- [X] I understand that filing an issue or adding liquidity does not guarantee addition to the Uniswap…
-
# Lines of code
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/FeeSplitter.sol#L90
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/FeeSplitter.sol#L43-L46
https://g…
-
Looking to stake into a quickswap rewards contract using the stake() function.
What am I doing wrong with the code below?
If not, what is the code required for the other function stakeWithPermit…
-
### 1. Check for zero `tokenBalance` before `depositTokens()`
-In [MerkleDropFactory.sol#L59](https://github.com/code-423n4/2022-05-factorydao/blob/db415804c06143d8af6880bc4cda7222e5463c0e/contracts/M…
-
Given a proxy created for a package/contract, such as `openzeppelin/ERC20`, we should allow the user to upgrade the proxy to a different contract or even a different package. For instance, the user ma…
-
# Lines of code
https://github.com/code-423n4/2024-04-dyad/blob/main/src/core/VaultManagerV2.sol#L205-L228
# Vulnerability details
## Impact
When a position's collateral ratio drops below 150%, it…