-
# Handle
WatchPug
# Vulnerability details
https://github.com/XDeFi-tech/xdefi-distribution/blob/3856a42df295183b40c6eee89307308f196612fe/contracts/XDEFIDistribution.sol#L253-L255
```solidity
requ…
-
### Overview
Overview
https://walletconnect.com/
Wallet connect is a protocol allowing wallets to connect with Dapps. ShapeShift as a Dapp would like to allow any v1 integrated wallet in the …
-
# Handle
WatchPug
# Vulnerability details
Unused named returns increase contract size and gas usage at deployment.
https://github.com/XDeFi-tech/xdefi-distribution/blob/3856a42df295183b40c6eee893…
-
# Handle
Meta0xNull
# Vulnerability details
## Impact
Since XDEFI Address is Known and it is Permanent, hardcoded XDEFI address and make it constant can save some gas.
Also, this can avoid fat fi…
-
# Handle
0xsanson
# Vulnerability details
The state variable `MAX_TOTAL_XDEFI_SUPPLY` can be declared `constant` to save gas so it won't be read from storage.
```
uint88 internal /*constant*/ MAX…
-
# Handle
WatchPug
# Vulnerability details
In `lock()`, checks of `amount_` is done in `_unlock()`, after `safeTransferFrom()`.
https://github.com/XDeFi-tech/xdefi-distribution/blob/3856a42df29518…
-
# Handle
WatchPug
# Vulnerability details
The current implementation requires the rewarder (usually the platform) to transfer the rewards (XDEFI tokens) to the contract and calls `updateDistributi…
-
# Handle
onewayfunction
# Vulnerability details
## Impact
The [`amount_
-
# Handle
gpersoon
# Vulnerability details
## Impact
The function updateDistribution() calls _updateXDEFIBalance() and then updates _pointsPerUnit.
Suppose XDEFI tokens are send to the XDEFIDistri…
-
# Handle
leastwood
# Vulnerability details
## Impact
The `XDEFIDistribution.sol` contract handles `XDEFI` distributions received from `XDEFI` products, on-chain treasuries and other benevolent us…