Solution: Split Ratios
Explore how to implement validation for split ratios in Solidity contracts. Learn to ensure the array length is greater than two and each element exceeds five before deploying the contract, using the require function to enforce constraints and handle errors effectively.
We'll cover the following...
We'll cover the following...
Flowchart of a possible solution
In this challenge, you needed to create a _splitRatios array of length greater than 2 and with each value greater than 5.
As shown in the flow chart above, we’ll pass the ...