Upade lnurlw_request
This commit is contained in:
parent
aa49fce3ff
commit
6661ebc7a4
1 changed files with 6 additions and 1 deletions
|
|
@ -312,11 +312,16 @@ func Response(w http.ResponseWriter, req *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defalut_description := db.Get_setting("DEFAULT_DESCRIPTION")
|
||||||
|
if defalut_description == "" {
|
||||||
|
defalut_description = "WWT withdrawal"
|
||||||
|
}
|
||||||
|
|
||||||
response := ResponseData{}
|
response := ResponseData{}
|
||||||
response.Tag = "withdrawRequest"
|
response.Tag = "withdrawRequest"
|
||||||
response.Callback = lnurlw_cb_url
|
response.Callback = lnurlw_cb_url
|
||||||
response.LnurlwK1 = lnurlw_k1
|
response.LnurlwK1 = lnurlw_k1
|
||||||
response.DefaultDescription = "WWT withdrawal"
|
response.DefaultDescription = defalut_description
|
||||||
response.MinWithdrawable = min_withdraw_sats * 1000 // milliSats
|
response.MinWithdrawable = min_withdraw_sats * 1000 // milliSats
|
||||||
response.MaxWithdrawable = max_withdraw_sats * 1000 // milliSats
|
response.MaxWithdrawable = max_withdraw_sats * 1000 // milliSats
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue