yearn / yearn-vaults-v3

GNU Affero General Public License v3.0
96 stars 35 forks source link

build: only burn or mint #193

Closed Schlagonia closed 7 months ago

Schlagonia commented 8 months ago

Description

Most reports will burn shares twice and mint once causing unnecesary gas usage.

This will calculate the end state of shares first and then only burn OR mint depending on the amount needed to change.

Fixes # (issue)

Checklist