LockingMultiRewards contract on Blast does not configure gas yield nor token yield mode.
The LockingMultiRewards staking contract on Blast was deployed without configuring its gas yield mode or token yield mode, unlike other contracts in the protocol. As a result, gas fees and native yield rewards accrued on that contract cannot be claimed and are effectively lost.
Submitted by DarkTower
The Abracadabra team configures gas yield for all contracts in the Blast L2 except for the LockingMultiRewards contract. Therefore, gas yields accrued on the LockingMultiRewards staking contract since deployment will be lost as it was never configured using BlastYields.configureDefaultClaimables. If the contract holds native yield reward tokens in ERC20 such as WETHRebasing or USDB then these rewards will also be lost.
Proof of Concept
During deployment of the staking contract on Blast, the staking contract’s gas yield mode should be configured to be able to claim accrued gas fees spent on the contract. We know that the bootstrap() function spawns the LockingMultiRewards staking contract below.
function bootstrap(uint256 minAmountOut) external onlyOwner onlyState(State.Closed) returns (address, address, uint256) {
...
@> staking = new LockingMultiRewards(pool, 30_000, 7 days, 13 weeks, address(this)); // spawns the staking contract
...
}
However, in the LockingMultiRewards contract, the BlastYields.configureDefaultClaimables function does not exist in the LockingMultiRewards constructor to configure the staking contract’s gas yield mode. Therefore, gas yield cannot be claimed LockingMultiRewards.
constructor(
address _stakingToken,
uint256 _lockingBoostMultiplerInBips,
uint256 _rewardsDuration,
uint256 _lockDuration,
address _owner
) OperatableV2(_owner) {
if (_lockingBoostMultiplerInBips <= BIPS) {
revert ErrInvalidBoostMultiplier();
}
if (_lockDuration < MIN_LOCK_DURATION) {
revert ErrInvalidLockDuration();
}
if (_rewardsDuration < MIN_REWARDS_DURATION) {
revert ErrInvalidRewardDuration();
}
if (_lockDuration % _rewardsDuration != 0) {
revert ErrInvalidDurationRatio();
}
stakingToken = _stakingToken;
lockingBoostMultiplerInBips = _lockingBoostMultiplerInBips;
rewardsDuration = _rewardsDuration;
lockDuration = _lockDuration;
// kocks are combined into the same `rewardsDuration` epoch. So, if
// a user stake with locking every `rewardsDuration` this should reach the
// maximum number of possible simultaneous because the first lock gets expired,
// freeing up a slot.
maxLocks = _lockDuration / _rewardsDuration;
}
We believe this to be a mistake by the Abracadabra team as all other contracts that use substantial gas except for this contract had their gas yield mode configured/ The gas spent for this contract will be very substantial considering that users will spend substantial amounts of gas claiming from the staking contract. Therefore the Abracadabra is missing out the gas fees in this contract by not configuring the gas yield mode and possibly native yield in such as WETHRebasing or USDB if such tokens are used
Tools Used
Foundry
Recommended Mitigation Steps
Configure the Blast gas yield mode for the LockingMultiRewards staking contract in the constructor and expose a function for admin to collect the yields. Additionally, also consider whether Blast points need to be configured here.
I’ll consider this an M about value leak.
Note: For full discussion, see here.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the LockingMultiRewards constructor omitted the call to BlastYields.configureDefaultClaimables that other contracts use, so the contract's yield modes were never set.
Impact
Gas yield and any native yield from tokens such as WETHRebasing or USDB held by the contract are lost, though the text only says this is likely and does not quantify the loss.
What the attacker needed
Contract deployed on Blast; users spend gas on the contract
The fix
The gas yield mode should be configured in the constructor and an admin function should be exposed to collect the yields, with Blast points also considered.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Blast is a blockchain that automatically pays back some of the gas fees you spend, and can also pay interest on certain tokens held by a contract. To receive these, a contract has to be set up to claim them when it is created. This staking contract was not set up that way, so the money it earned in gas rebates and token interest cannot be collected.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.