APWine SDK v0.2.1 beta
Pre-release
Pre-release
- added function
useSigner
anduseProvider
These will reinstantiate the following contracts:
-- sdk.Registry
-- sdk.AmmRegistry
-- sdk.Router
-- sdk.Controller
By default the provider will be used, since
if the instance is used for just fetching, it's better, because the sdk automatically wraps it into a MulticallProvider.
BulletPoints
- added needsApproval check in the approve function
- fixed a problem where the Controller would always be instantiated with a provider
- fixed getTokencontract casing
- fixed autoApprove not approving for the correct tokenAddress
- renamed apwibt to pt
- fixed a bug with fetchAMM getting the registry address instead of the router address.
- updated amm abi
- also added reexports of all types from amm and protocol