primitivefinance / portfolio

Portfolio is an automated market making protocol for implementing custom strategies at the lowest cost possible.

Home Page:https://www.primitive.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix: Cannot withdraw all tokens in one transaction

Alexangelj opened this issue · comments

Description

The draw function withdraws tokens from an internal balance of an account to a target address. If a user directly has an account in Portfolio, they would need to do a transaction for each token. This should be fixed by updating the draw function to take an array of tokens and amounts to withdraw.

Fixed in #305

Closing this as internal balances were removed.