Submitted by 0xpiken, also found by Aymen0909, MiloTruck, Fulum, 0xCiphky, max10afternoon, tallo, Drynooo, cartlex_, HALITUS, gumgumzum (1, 2), CaeraDenoir, serial-coder, stackachu, 0xkazim, josephdara, Toshii, DeFiHackLabs (1, 2), SpicyMeatball (1, 2), ZdravkoHr (1, 2), nirlin, radev_sw, TuringConsulting, nonseodion, Yanchuan, hash (1, 2), erictee, jasonxiale, _nd_koo, 0xhegel, gizzy, sl1, QiuhaoLi (1, 2), trachev, smiling_heretic, crunch, LokiThe5th, said, lanrebayode77, circlelooper, SovaSlava, osmanozdemir1, Mike_Bello90, TrungOre, Silvermist, Vagner (1, 2), kodyvim, deth, ke1caM (1, 2), Jiamin, 0xStalin (1, 2), almurhasan, peter, audityourcontracts, ggg_ttt_hhh, AM, Eigenvectors (1, 2), 3docSec, Juntao, marqymarq10 (1, 2), 0xComfyCat (1, 2), rvierdiiev (1, 2), ayden, squeaky_cactus, cu5t0mpeo, zaevlad, HChang26, and T1MOH (1, 2)
Without the ability to update maxTotalSupply, borrower has no way to raise more assets in a specific market. Even worse, borrower has to pay extra interest for unused assets all the time because borrower has no way to reduce the max total supply of the market.
Similarly, borrower has to pay extra interest to the no-longer-used market all the time because there is no way to close it.
There are access controls on functions setMaxTotalSupply() and closeMarket(), and only WildcatMarketController is allowed to access them; however, there is not a function in WildcatMarketController allowing the borrower to access them.
Add setMaxTotalSupply() and closeMarket() in WildcatMarketController to allow the borrower access these functions:
Access Control
laurenceday (Wildcat) commented:
0xTheC0der (judge) commented:
laurenceday (Wildcat) confirmed and commented:
