Deploying the Portfolio Contract factory, leads to successful deployment of two contracts, portfolioBuyer and portfolioTokens.
addMinter function in portfolioTokens contract, successfully adds the portfolioBuyer contract as a minter and thus allows the contract to mint portfolio Tokens.
setTokenAddress function allows the portfolioBuyer contract to successfully mint the portfolio Tokens to the user.
A designated Signer is added that successfully provides the signature from the backend and allows the buyer to buy portfolio tokens. Any tampering with the data passed reverts the transaction.
BuyBack Function from the portfolioBuyer contract successfully, provides the value of the portfolio token , to the client according to the current market, by burning the portfolio token.
All the setters are working as expected.
Solidity Developer and Tester with 1.5 years of experience in writing many P2E games. Tester with knowledge of both automated tests with hardhat and remix testing. Experienced in working with team of developers.