When a new yang is added, to avoid deposit front running, an initial token amount of 1000, will be added. But there is no mechanism implementation to takeout those tokens back. This will make the tokens to be stuck inside the shrine.
Tools Used
Manual Review
Recommended Mitigation Steps
Add a mechanism to get the initial token amounts out even after closing shrine.
Lines of code
https://github.com/code-423n4/2024-01-opus/blob/main/src/core/sentinel.cairo#L201-L206
Vulnerability details
Impact
When a new yang is added, to avoid deposit front running, an initial token amount of 1000, will be added. But there is no mechanism implementation to takeout those tokens back. This will make the tokens to be stuck inside the shrine.
Tools Used
Manual Review
Recommended Mitigation Steps
Add a mechanism to get the initial token amounts out even after closing shrine.
Assessed type
Token-Transfer