futureversecom / trn-seed

Implementation of The Root Network node in Rust, based on the Substrate framework.
https://www.therootnetwork.com
Apache License 2.0
17 stars 5 forks source link

TRN-397 swap out boundedVec for erc20-peg #885

Closed Nick95550 closed 1 month ago

Nick95550 commented 1 month ago

PR checklist

When upgrading to Frame V2 we had to introduce a bounded vec into the erc20-peg pallet that stores the delayed payments. This is a potential vulnerability and should be addresses. This PR introduces a extrinsic allowing sudo to claim a delayed payment in the case that a payment gets blocked and migrates the storage to use a weakBoundedWeak. In this impl the upper bound shouldn't be reached.

related ticket: https://futureverse.atlassian.net/jira/software/c/projects/TRN/boards/39?assignee=712020:e6af0fd1-96ad-49ff-8750-5ff03ad831e8&selectedIssue=TRN-397