Standing Repo Facility (SRF) allows banks & other financial institutions to do collateral-backed loans from the FED overnight
the institution provides high quality collateral (e.g. treasury bond) and gets a loan against it - at the set rate
it't called discount window for historical reasons
discounting means buying treasuries at a slightly lower price - i.e. at a discount
window comes from the fact that these were sold at counter/teller windows at the bank