Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
//Address add of user
Address string `json:"address" binding:"required,isAddress"`
//Timestamp return timestamp of adding address
Timestamp int64 `json:"timestamp" binding:"required"`
}
Info an information of an user
type UserCap ¶
type UserCap struct {
// DailyLimit is the USD amount if the user is considered rich
// and will receive different rates.
DailyLimit float64 `json:"daily_limit"`
// TxLimit is the maximum value in USD of a transaction an user
// is allowed to make.
TxLimit float64 `json:"tx_limit"`
}
UserCap is users transaction cap.
func NewUserCap ¶
NewUserCap returns user cap based on KYC status.
Click to show internal directories.
Click to hide internal directories.