Skip to content

Commit

Permalink
fix: mark old loans functions as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
aaditya-smallcase committed Aug 22, 2024
1 parent 85fa7e8 commit a03f21a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ScLoan.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const setup = async (config) => {
* @param {ScLoanInfo} loanInfo
* @returns {Promise<ScLoanSuccess>}
* @throws {ScLoanError}
* @deprecated This method is deprecated use triggerInteraction() instead.
*/
const apply = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
Expand All @@ -56,6 +57,7 @@ const apply = async (loanInfo) => {
* @param {ScLoanInfo} loanInfo
* @returns {Promise<ScLoanSuccess>}
* @throws {ScLoanError}
* @deprecated This method is deprecated use triggerInteraction() instead.
*/
const pay = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
Expand All @@ -69,6 +71,7 @@ const pay = async (loanInfo) => {
* @param {ScLoanInfo} loanInfo
* @returns {Promise<ScLoanSuccess>}
* @throws {ScLoanError}
* @deprecated This method is deprecated use triggerInteraction() instead.
*/
const withdraw = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
Expand All @@ -82,6 +85,7 @@ const withdraw = async (loanInfo) => {
* @param {ScLoanInfo} loanInfo
* @returns {Promise<ScLoanSuccess>}
* @throws {ScLoanError}
* @deprecated This method is deprecated use triggerInteraction() instead.
*/
const service = async (loanInfo) => {
const safeLoanInfo = safeObject(loanInfo);
Expand Down

0 comments on commit a03f21a

Please sign in to comment.