Close Long

Last updated

Notes:
Changing Open to Close, all "From"s are changed to "To"s;
premiumFrom in "Close Long" has the same length as the premiumTo in "Open Long". Also, since tokenFromOwed is capped at premiumFrom, the minimum amountSpent is (collateralFrom - amountFromAdd).
Last updated