You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently while reviewing the fixes Red Dragon that are currently in review, I found another potential fault with the ratios, (that coincidentally was fixed in the same pull-request):
Ratios can be set to -0 or any other negative number which would break the configure-ratio script.
Instructions followed as of 2024-11-22:
https://docs.evefrontier.com/QuickstartGuide
https://docs.evefrontier.com/SmartStorageUnit/deploy-smart-storage-unit-contracts
https://docs.evefrontier.com/SmartStorageUnit/configure-smart-storage-unit
Applies to local Docker Chain deployments only:
Problem: There is a hardcoded quantity of 7 items when using the Execute.s.sol script to test the configured ratios of the Smart Storage Unit.
Solution: Configure hardcoded value listed in Execute.s.sol (https://github.com/projectawakening/builder-examples/blob/develop/smart-storage-unit/packages/contracts/script/Execute.s.sol#L45) to use ratio values from .env file.
As a result, this will throw off people testing custom ratios for their local deployments. Below example has the following ratios configured:
IN_RATIO=5
OUT_RATIO=1
The location of the hardcoded quantity:
https://github.com/projectawakening/builder-examples/blob/develop/smart-storage-unit/packages/contracts/script/Execute.s.sol#L45
The definition for the world.call command where it lists the
SmartStorageUnitSystem.execute, (smartStorageUnitId, 7, itemIn))
is below:https://github.com/projectawakening/builder-examples/blob/develop/smart-storage-unit/packages/contracts/src/systems/SmartStorageUnitSystem.sol#L76
The text was updated successfully, but these errors were encountered: