Closed ghost closed 3 years ago
@odcheung - thanks for the review! Agree, that having aquafarm as a separate api makes more sense, as it will be more extensible for the future (e.g. when it comes to double-dip). Pushed a new commit that extracts the farm logic and created a new farm api, along with new constants.
Context
Notes
@orca-so/aquafarm
getFarm()
apiOrcaFarm
interface and implementation for interacting with farm:getFarmBalance
,getFarmSupply
,deposit
,withdraw
orcaFarmConfigs
conforming toOrcaFarmParams
Usage
Tests
deposit()
and verified that aquafarm tokens were received; also verified on the website.withdraw()
and verified that aquafarm tokens could be redeemed back to tokenA and tokenB.