You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: candidate_node.go
    path of file: ./repos/go-ibax/packages/storage/sqldb
    
    the code of the file until where you have to start completion: package sqldb

import (
	"github.com/IBAX-io/go-ibax/packages/consts"
	"github.com/shopspr
    
func GetPledgeAmount() (int64, error) {
	var (
		pledgeAmount string
		err          error
		amount       decimal.Decimal
	)
	row := DBConn.Raw(`select
								ap.value 
							from
								"1_app_params" ap,
								"1_applications" a
							where
								ap.app_id = a.id
								and a."name" = 'CandidateNode'
								and ap."name" = 'limit_candidate_pack'
								and a.deleted = 0
								and a.ecosystem = 1`).Row()
	err = row.Scan(&pledgeAmount)
	if err != nil {
		return 0, err
	}
	amount, err = decimal.NewFromString(pledgeAmount)
	if err != nil {
		return 0, err
	}
	return amount.Mul(decimal.New(1, consts.MoneyDigits)).IntPart(), nil
}