What are the various margins applicable to the borrower & lender on T day?

In case of borrowing, only the lending fee is levied upfront as margin. In the case of lending, 25% of the lending price (T-1 cash market closing price) and Mark to market (MTM) at the end of day are charged to the lender. These margins are not applicable to the lender in case the lender does Early Pay-in of securities.