Skip to content

Conversation

@ipapandinas
Copy link
Contributor

Pull Request Summary

Closes #1518

@ipapandinas ipapandinas added shiden related to shiden runtime astar Related to Astar shibuya related to shibuya runtime This PR/Issue is related to the topic “runtime”. labels Dec 26, 2025
@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Health
primitives/src/xcm 66% 0%
pallets/ethereum-checked/src 76% 0%
precompiles/substrate-ecdsa/src 67% 0%
precompiles/sr25519/src 56% 0%
pallets/dapp-staking/src/test 0% 0%
chain-extensions/unified-accounts/src 0% 0%
pallets/collective-proxy/src 94% 0%
pallets/dynamic-evm-base-fee/src 85% 0%
precompiles/dapp-staking/src/test 0% 0%
pallets/static-price-provider/src 91% 0%
precompiles/assets-erc20/src 77% 0%
pallets/astar-xcm-benchmarks/src/fungible 100% 0%
pallets/astar-xcm-benchmarks/src/generic 100% 0%
chain-extensions/types/unified-accounts/src 0% 0%
pallets/inflation/src 58% 0%
pallets/vesting-mbm/src 87% 0%
pallets/astar-xcm-benchmarks/src 86% 0%
precompiles/dapp-staking/src 89% 0%
pallets/xc-asset-config/src 56% 0%
chain-extensions/pallet-assets/src 54% 0%
primitives/src 52% 0%
pallets/collator-selection/src 82% 0%
pallets/dapp-staking/rpc/runtime-api/src 0% 0%
pallets/unified-accounts/src 80% 0%
pallets/price-aggregator/src 75% 0%
pallets/dapp-staking/src/benchmarking 95% 0%
chain-extensions/types/assets/src 0% 0%
precompiles/xcm/src 69% 0%
precompiles/unified-accounts/src 100% 0%
pallets/dapp-staking/src 80% 0%
pallets/democracy-mbm/src 30% 0%
Summary 72% (3855 / 5353) 0% (0 / 0)

Minimum allowed line rate is 50%

@ipapandinas ipapandinas marked this pull request as draft December 26, 2025 16:18
@Dinonard
Copy link
Contributor

LGTM but please make sure to check with the FE team about the impact.

@ermalkaleci
Copy link
Contributor

ermalkaleci commented Dec 29, 2025

@ipapandinas @Dinonard precompiles cannot be removed, what happens to existing contracts using it?

@ipapandinas
Copy link
Contributor Author

I am not comfortable removing this precompile either. I did a quick investigation and found that several lockdrop addresses are still being used. I will not include its removal in the next runtime upgrade.

DecodeLimit: Get<u32>,
{
#[precompile::public("dispatch_lockdrop_call(bytes,bytes)")]
fn dispatch_lockdrop_call(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ipapandinas @ermalkaleci related to your concerns, please check this.

This can only be called by EoAs, not smart contracts.

This was added back in 2024 since some accounts continued to use this lockdrop account approach even after it was discontinued. The purpose was for users to claim their lockdrop rewards, and move them to an actual account supported by the Astar/Shiden.

The idea was to remove it after 3 months, but it is still here.
We haven't even documented it, intentionally, since a few users were supposed to get their funds out, and we'd close this backdoor.

Copy link
Contributor Author

@ipapandinas ipapandinas Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, this ETH address participated to the 1st lockdrop and its associated Substrate account still has been active this year and has funds.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to take it up with G' then.

The agreement was that we'd take it down before. But everyone seems to have forgotten about it.
Anyways, even if we leave it it's not the end of the world since the whole precompile is quite limited with what user can do.

Checking how many such accounts are left would be beneficial - if there are only a few, perhaps we might know who they are associated with.

# Conflicts:
#	precompiles/dispatch-lockdrop/Cargo.toml
#	precompiles/dispatch-lockdrop/src/lib.rs
#	precompiles/dispatch-lockdrop/src/mock.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astar Related to Astar runtime This PR/Issue is related to the topic “runtime”. shibuya related to shibuya shiden related to shiden runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lockdrop dispatch call cleanup

4 participants