-
```
module Api::V1::P2pTrades
class FeesController < Api::BaseController
def index
gross_amount = params[:gross_amount] || 0.00
transfer_fees = FeeService.new(gross_amount, 'p2p', 0…
-
```
module Api::V1
class P2pTrades::CurrenciesController < Api::BaseController
include ::P2pTrades::CurrencyHelper
def index
render json: currencies
end
end
end
```
-
```
module Api::V1
class P2pTrades::CountriesController < Api::BaseController
include ::P2pTrades::CountryHelper
def index
render json: countries
end
end
end
```
-
```
module Api::V1
class P2pTrades::ChatsController < Api::BaseController
before_action :find_trade
def index
@chats = @trade.chats.includes(:attachment_attachment)
render json:…
-
### FILE
```
# frozen_string_literal: true
ActiveAdmin.register LoanTransaction do
actions :all, except: [:new, :create, :destroy]
includes :user, :transfer
config.sort_order = 'created_at_des…
-
### FILE
```
require 'prawn'
require 'prawn/table'
ActiveAdmin.register Verification, as: 'KycReport' do
menu parent: 'Reports', label: 'Kyc Reports'
controller do
before_action :set_date_r…
-
### FILE
```
ActiveAdmin.register InsurancePolicy do
config.sort_order = 'created_at_asc'
menu parent: 'Loans & Insurance', label: 'Calculator Data'
# See permitted parameters documentatio…
-
### FILE
```
ActiveAdmin.register InsuranceLead do
config.sort_order = 'created_at_desc'
menu parent: 'Loans & Insurance', label: 'Insurance Leads'
# See permitted parameters documentation:
…
-
### FILE
```
ActiveAdmin.register FiatRate do
config.sort_order = 'date_desc'
menu parent: 'Currencies', label: 'EU Rates'
# See permitted parameters documentation:
# https://github.com/act…
-
### FILE
```
ActiveAdmin.register ExchangeRate do
# config.sort_order = 'name_asc'
menu parent: 'Currencies', label: 'Exchange Rates'
# See permitted parameters documentation:
# https://gi…