OVU272MTFF2XBBDVUH7GCQ6FX5NZFC7FYU57TQI6GTA6SLQKEKFAC
)
case user' ^. userAccountRecovery of
RecoverByZAddr addr -> linkZcashAccount uid addr
RecoverByEmail _ -> pure ()
pure uid
linkZcashAccount :: UserId -> Zcash.Address -> DBM ()
linkZcashAccount uid addr =
void $ pexec
[sql| INSERT INTO cryptocurrency_accounts (user_id, is_primary, zcash_addr)
VALUES (?, ?, ?) |]
( uid ^. _UserId,
True,
addr ^. Zcash._Address